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
|
@@ -0,0 +1,1515 @@
|
|
|
1
|
+
var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) {
|
|
3
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
4
|
+
resolve(value);
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8
|
+
function fulfilled(value) {
|
|
9
|
+
try {
|
|
10
|
+
step(generator.next(value));
|
|
11
|
+
} catch (e) {
|
|
12
|
+
reject(e);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function rejected(value) {
|
|
16
|
+
try {
|
|
17
|
+
step(generator["throw"](value));
|
|
18
|
+
} catch (e) {
|
|
19
|
+
reject(e);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function step(result) {
|
|
23
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
24
|
+
}
|
|
25
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
29
|
+
import { h, ref, toRef, computed, defineComponent, provide, watch, nextTick, watchEffect, inject } from 'vue';
|
|
30
|
+
import { createTreeMate, flatten, createIndexGetter } from 'treemate';
|
|
31
|
+
import { useMergedState } from 'vooks';
|
|
32
|
+
import { VVirtualList } from 'vueuc';
|
|
33
|
+
import { depx, getPadding, pxfy } from 'seemly';
|
|
34
|
+
import { treeSelectInjectionKey } from "../../tree-select/src/interface.mjs";
|
|
35
|
+
import { useConfig, useTheme, useThemeClass, useRtl } from "../../_mixins/index.mjs";
|
|
36
|
+
import { call, createDataKey, resolveSlot, warn, warnOnce } from "../../_utils/index.mjs";
|
|
37
|
+
import { NxScrollbar } from "../../_internal/index.mjs";
|
|
38
|
+
import { treeLight } from "../styles/index.mjs";
|
|
39
|
+
import { NEmpty } from "../../empty/index.mjs";
|
|
40
|
+
import NTreeNode from "./TreeNode.mjs";
|
|
41
|
+
import { keysWithFilter, emptyImage, filterTree, isNodeDisabled, useMergedCheckStrategy } from "./utils.mjs";
|
|
42
|
+
import { useKeyboard } from "./keyboard.mjs";
|
|
43
|
+
import { treeInjectionKey } from "./interface.mjs";
|
|
44
|
+
import MotionWrapper from "./MotionWrapper.mjs";
|
|
45
|
+
import { defaultAllowDrop } from "./dnd.mjs";
|
|
46
|
+
import style from "./styles/index.cssr.mjs";
|
|
47
|
+
export function createTreeMateOptions(keyField, childrenField, disabledField, getChildren) {
|
|
48
|
+
const settledGetChildren = getChildren || (node => {
|
|
49
|
+
return node[childrenField];
|
|
50
|
+
});
|
|
51
|
+
return {
|
|
52
|
+
getIsGroup() {
|
|
53
|
+
return false;
|
|
54
|
+
},
|
|
55
|
+
getKey(node) {
|
|
56
|
+
return node[keyField];
|
|
57
|
+
},
|
|
58
|
+
getChildren: settledGetChildren,
|
|
59
|
+
getDisabled(node) {
|
|
60
|
+
return !!(node[disabledField] || node.checkboxDisabled);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export const treeSharedProps = {
|
|
65
|
+
allowCheckingNotLoaded: Boolean,
|
|
66
|
+
filter: Function,
|
|
67
|
+
defaultExpandAll: Boolean,
|
|
68
|
+
expandedKeys: Array,
|
|
69
|
+
keyField: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: 'key'
|
|
72
|
+
},
|
|
73
|
+
labelField: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: 'label'
|
|
76
|
+
},
|
|
77
|
+
childrenField: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: 'children'
|
|
80
|
+
},
|
|
81
|
+
disabledField: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: 'disabled'
|
|
84
|
+
},
|
|
85
|
+
defaultExpandedKeys: {
|
|
86
|
+
type: Array,
|
|
87
|
+
default: () => []
|
|
88
|
+
},
|
|
89
|
+
indeterminateKeys: Array,
|
|
90
|
+
renderSwitcherIcon: Function,
|
|
91
|
+
onUpdateIndeterminateKeys: [Function, Array],
|
|
92
|
+
'onUpdate:indeterminateKeys': [Function, Array],
|
|
93
|
+
onUpdateExpandedKeys: [Function, Array],
|
|
94
|
+
'onUpdate:expandedKeys': [Function, Array],
|
|
95
|
+
overrideDefaultNodeClickBehavior: Function
|
|
96
|
+
};
|
|
97
|
+
export const treeProps = Object.assign(Object.assign(Object.assign(Object.assign({}, useTheme.props), {
|
|
98
|
+
accordion: Boolean,
|
|
99
|
+
showIrrelevantNodes: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
default: true
|
|
102
|
+
},
|
|
103
|
+
data: {
|
|
104
|
+
type: Array,
|
|
105
|
+
default: () => []
|
|
106
|
+
},
|
|
107
|
+
expandOnDragenter: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: true
|
|
110
|
+
},
|
|
111
|
+
expandOnClick: Boolean,
|
|
112
|
+
checkOnClick: {
|
|
113
|
+
type: [Boolean, Function],
|
|
114
|
+
default: false
|
|
115
|
+
},
|
|
116
|
+
cancelable: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: true
|
|
119
|
+
},
|
|
120
|
+
checkable: Boolean,
|
|
121
|
+
draggable: Boolean,
|
|
122
|
+
blockNode: Boolean,
|
|
123
|
+
blockLine: Boolean,
|
|
124
|
+
showLine: Boolean,
|
|
125
|
+
disabled: Boolean,
|
|
126
|
+
checkedKeys: Array,
|
|
127
|
+
defaultCheckedKeys: {
|
|
128
|
+
type: Array,
|
|
129
|
+
default: () => []
|
|
130
|
+
},
|
|
131
|
+
selectedKeys: Array,
|
|
132
|
+
defaultSelectedKeys: {
|
|
133
|
+
type: Array,
|
|
134
|
+
default: () => []
|
|
135
|
+
},
|
|
136
|
+
multiple: Boolean,
|
|
137
|
+
pattern: {
|
|
138
|
+
type: String,
|
|
139
|
+
default: ''
|
|
140
|
+
},
|
|
141
|
+
onLoad: Function,
|
|
142
|
+
cascade: Boolean,
|
|
143
|
+
selectable: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
default: true
|
|
146
|
+
},
|
|
147
|
+
scrollbarProps: Object,
|
|
148
|
+
indent: {
|
|
149
|
+
type: Number,
|
|
150
|
+
default: 24
|
|
151
|
+
},
|
|
152
|
+
allowDrop: {
|
|
153
|
+
type: Function,
|
|
154
|
+
default: defaultAllowDrop
|
|
155
|
+
},
|
|
156
|
+
animated: {
|
|
157
|
+
type: Boolean,
|
|
158
|
+
default: true
|
|
159
|
+
},
|
|
160
|
+
checkboxPlacement: {
|
|
161
|
+
type: String,
|
|
162
|
+
default: 'left'
|
|
163
|
+
},
|
|
164
|
+
virtualScroll: Boolean,
|
|
165
|
+
watchProps: Array,
|
|
166
|
+
renderLabel: Function,
|
|
167
|
+
renderPrefix: Function,
|
|
168
|
+
renderSuffix: Function,
|
|
169
|
+
nodeProps: Function,
|
|
170
|
+
keyboard: {
|
|
171
|
+
type: Boolean,
|
|
172
|
+
default: true
|
|
173
|
+
},
|
|
174
|
+
getChildren: Function,
|
|
175
|
+
onDragenter: [Function, Array],
|
|
176
|
+
onDragleave: [Function, Array],
|
|
177
|
+
onDragend: [Function, Array],
|
|
178
|
+
onDragstart: [Function, Array],
|
|
179
|
+
onDragover: [Function, Array],
|
|
180
|
+
onDrop: [Function, Array],
|
|
181
|
+
onUpdateCheckedKeys: [Function, Array],
|
|
182
|
+
'onUpdate:checkedKeys': [Function, Array],
|
|
183
|
+
onUpdateSelectedKeys: [Function, Array],
|
|
184
|
+
'onUpdate:selectedKeys': [Function, Array]
|
|
185
|
+
}), treeSharedProps), {
|
|
186
|
+
// internal props for tree-select
|
|
187
|
+
internalTreeSelect: Boolean,
|
|
188
|
+
internalScrollable: Boolean,
|
|
189
|
+
internalScrollablePadding: String,
|
|
190
|
+
// use it to display
|
|
191
|
+
internalRenderEmpty: Function,
|
|
192
|
+
internalHighlightKeySet: Object,
|
|
193
|
+
internalUnifySelectCheck: Boolean,
|
|
194
|
+
internalCheckboxFocusable: {
|
|
195
|
+
type: Boolean,
|
|
196
|
+
default: true
|
|
197
|
+
},
|
|
198
|
+
internalFocusable: {
|
|
199
|
+
// Make tree-select take over keyboard operations
|
|
200
|
+
type: Boolean,
|
|
201
|
+
default: true
|
|
202
|
+
},
|
|
203
|
+
checkStrategy: {
|
|
204
|
+
type: String,
|
|
205
|
+
default: 'all'
|
|
206
|
+
},
|
|
207
|
+
/**
|
|
208
|
+
* @deprecated
|
|
209
|
+
*/
|
|
210
|
+
leafOnly: Boolean
|
|
211
|
+
});
|
|
212
|
+
export default defineComponent({
|
|
213
|
+
name: 'Tree',
|
|
214
|
+
props: treeProps,
|
|
215
|
+
setup(props) {
|
|
216
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
217
|
+
watchEffect(() => {
|
|
218
|
+
if (props.leafOnly) {
|
|
219
|
+
warnOnce('tree', '`leaf-only` is deprecated, please use `check-strategy="child"` instead');
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
const {
|
|
224
|
+
mergedClsPrefixRef,
|
|
225
|
+
inlineThemeDisabled,
|
|
226
|
+
mergedRtlRef
|
|
227
|
+
} = useConfig(props);
|
|
228
|
+
const rtlEnabledRef = useRtl('Tree', mergedRtlRef, mergedClsPrefixRef);
|
|
229
|
+
const themeRef = useTheme('Tree', '-tree', style, treeLight, props, mergedClsPrefixRef);
|
|
230
|
+
const selfElRef = ref(null);
|
|
231
|
+
const scrollbarInstRef = ref(null);
|
|
232
|
+
const virtualListInstRef = ref(null);
|
|
233
|
+
function getScrollContainer() {
|
|
234
|
+
var _a;
|
|
235
|
+
return (_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.listElRef;
|
|
236
|
+
}
|
|
237
|
+
function getScrollContent() {
|
|
238
|
+
var _a;
|
|
239
|
+
return (_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.itemsElRef;
|
|
240
|
+
}
|
|
241
|
+
const mergedFilterRef = computed(() => {
|
|
242
|
+
const {
|
|
243
|
+
filter
|
|
244
|
+
} = props;
|
|
245
|
+
if (filter) return filter;
|
|
246
|
+
const {
|
|
247
|
+
labelField
|
|
248
|
+
} = props;
|
|
249
|
+
return (pattern, node) => {
|
|
250
|
+
if (!pattern.length) return true;
|
|
251
|
+
const label = node[labelField];
|
|
252
|
+
if (typeof label === 'string') {
|
|
253
|
+
return label.toLowerCase().includes(pattern.toLowerCase());
|
|
254
|
+
}
|
|
255
|
+
return false;
|
|
256
|
+
};
|
|
257
|
+
});
|
|
258
|
+
const filteredTreeInfoRef = computed(() => {
|
|
259
|
+
const {
|
|
260
|
+
pattern
|
|
261
|
+
} = props;
|
|
262
|
+
if (!pattern) {
|
|
263
|
+
return {
|
|
264
|
+
filteredTree: props.data,
|
|
265
|
+
highlightKeySet: null,
|
|
266
|
+
expandedKeys: undefined
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
if (!pattern.length || !mergedFilterRef.value) {
|
|
270
|
+
return {
|
|
271
|
+
filteredTree: props.data,
|
|
272
|
+
highlightKeySet: null,
|
|
273
|
+
expandedKeys: undefined
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
return filterTree(props.data, mergedFilterRef.value, pattern, props.keyField, props.childrenField);
|
|
277
|
+
});
|
|
278
|
+
// We don't expect data source to change so we just determine it once
|
|
279
|
+
const displayTreeMateRef = computed(() => createTreeMate(props.showIrrelevantNodes ? props.data : filteredTreeInfoRef.value.filteredTree, createTreeMateOptions(props.keyField, props.childrenField, props.disabledField, props.getChildren)));
|
|
280
|
+
const treeSelectInjection = inject(treeSelectInjectionKey, null);
|
|
281
|
+
const dataTreeMateRef = props.internalTreeSelect ? treeSelectInjection.dataTreeMate : displayTreeMateRef;
|
|
282
|
+
const {
|
|
283
|
+
watchProps
|
|
284
|
+
} = props;
|
|
285
|
+
const uncontrolledCheckedKeysRef = ref([]);
|
|
286
|
+
if (watchProps === null || watchProps === void 0 ? void 0 : watchProps.includes('defaultCheckedKeys')) {
|
|
287
|
+
watchEffect(() => {
|
|
288
|
+
uncontrolledCheckedKeysRef.value = props.defaultCheckedKeys;
|
|
289
|
+
});
|
|
290
|
+
} else {
|
|
291
|
+
uncontrolledCheckedKeysRef.value = props.defaultCheckedKeys;
|
|
292
|
+
}
|
|
293
|
+
const controlledCheckedKeysRef = toRef(props, 'checkedKeys');
|
|
294
|
+
const mergedCheckedKeysRef = useMergedState(controlledCheckedKeysRef, uncontrolledCheckedKeysRef);
|
|
295
|
+
const checkedStatusRef = computed(() => {
|
|
296
|
+
const value = dataTreeMateRef.value.getCheckedKeys(mergedCheckedKeysRef.value, {
|
|
297
|
+
cascade: props.cascade,
|
|
298
|
+
allowNotLoaded: props.allowCheckingNotLoaded
|
|
299
|
+
});
|
|
300
|
+
return value;
|
|
301
|
+
});
|
|
302
|
+
const mergedCheckStrategyRef = useMergedCheckStrategy(props);
|
|
303
|
+
const displayedCheckedKeysRef = computed(() => {
|
|
304
|
+
return checkedStatusRef.value.checkedKeys;
|
|
305
|
+
});
|
|
306
|
+
const displayedIndeterminateKeysRef = computed(() => {
|
|
307
|
+
const {
|
|
308
|
+
indeterminateKeys
|
|
309
|
+
} = props;
|
|
310
|
+
if (indeterminateKeys !== undefined) return indeterminateKeys;
|
|
311
|
+
return checkedStatusRef.value.indeterminateKeys;
|
|
312
|
+
});
|
|
313
|
+
const uncontrolledSelectedKeysRef = ref([]);
|
|
314
|
+
if (watchProps === null || watchProps === void 0 ? void 0 : watchProps.includes('defaultSelectedKeys')) {
|
|
315
|
+
watchEffect(() => {
|
|
316
|
+
uncontrolledSelectedKeysRef.value = props.defaultSelectedKeys;
|
|
317
|
+
});
|
|
318
|
+
} else {
|
|
319
|
+
uncontrolledSelectedKeysRef.value = props.defaultSelectedKeys;
|
|
320
|
+
}
|
|
321
|
+
const controlledSelectedKeysRef = toRef(props, 'selectedKeys');
|
|
322
|
+
const mergedSelectedKeysRef = useMergedState(controlledSelectedKeysRef, uncontrolledSelectedKeysRef);
|
|
323
|
+
const uncontrolledExpandedKeysRef = ref([]);
|
|
324
|
+
const initUncontrolledExpandedKeys = keys => {
|
|
325
|
+
uncontrolledExpandedKeysRef.value = props.defaultExpandAll ? dataTreeMateRef.value.getNonLeafKeys() : keys === undefined ? props.defaultExpandedKeys : keys;
|
|
326
|
+
};
|
|
327
|
+
if (watchProps === null || watchProps === void 0 ? void 0 : watchProps.includes('defaultExpandedKeys')) {
|
|
328
|
+
// if watching defaultExpandedKeys, we use access props.defaultExpandedKeys inside initiator
|
|
329
|
+
watchEffect(() => {
|
|
330
|
+
initUncontrolledExpandedKeys(undefined);
|
|
331
|
+
});
|
|
332
|
+
} else {
|
|
333
|
+
// We by default watchEffect since if defaultExpandAll is true, we should remain tree expand if data changes
|
|
334
|
+
watchEffect(() => {
|
|
335
|
+
initUncontrolledExpandedKeys(props.defaultExpandedKeys);
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
const controlledExpandedKeysRef = toRef(props, 'expandedKeys');
|
|
339
|
+
const mergedExpandedKeysRef = useMergedState(controlledExpandedKeysRef, uncontrolledExpandedKeysRef);
|
|
340
|
+
const fNodesRef = computed(() => displayTreeMateRef.value.getFlattenedNodes(mergedExpandedKeysRef.value));
|
|
341
|
+
const {
|
|
342
|
+
pendingNodeKeyRef,
|
|
343
|
+
handleKeydown
|
|
344
|
+
} = useKeyboard({
|
|
345
|
+
props,
|
|
346
|
+
mergedCheckedKeysRef,
|
|
347
|
+
mergedSelectedKeysRef,
|
|
348
|
+
fNodesRef,
|
|
349
|
+
mergedExpandedKeysRef,
|
|
350
|
+
handleCheck,
|
|
351
|
+
handleSelect,
|
|
352
|
+
handleSwitcherClick
|
|
353
|
+
});
|
|
354
|
+
let expandTimerId = null;
|
|
355
|
+
let nodeKeyToBeExpanded = null;
|
|
356
|
+
const uncontrolledHighlightKeySetRef = ref(new Set());
|
|
357
|
+
const controlledHighlightKeySetRef = computed(() => {
|
|
358
|
+
return props.internalHighlightKeySet || filteredTreeInfoRef.value.highlightKeySet;
|
|
359
|
+
});
|
|
360
|
+
const mergedHighlightKeySetRef = useMergedState(controlledHighlightKeySetRef, uncontrolledHighlightKeySetRef);
|
|
361
|
+
const loadingKeysRef = ref(new Set());
|
|
362
|
+
const expandedNonLoadingKeysRef = computed(() => {
|
|
363
|
+
return mergedExpandedKeysRef.value.filter(key => !loadingKeysRef.value.has(key));
|
|
364
|
+
});
|
|
365
|
+
let dragStartX = 0;
|
|
366
|
+
const draggingNodeRef = ref(null);
|
|
367
|
+
const droppingNodeRef = ref(null);
|
|
368
|
+
const droppingMouseNodeRef = ref(null);
|
|
369
|
+
const droppingPositionRef = ref(null);
|
|
370
|
+
const droppingOffsetLevelRef = ref(0);
|
|
371
|
+
const droppingNodeParentRef = computed(() => {
|
|
372
|
+
const {
|
|
373
|
+
value: droppingNode
|
|
374
|
+
} = droppingNodeRef;
|
|
375
|
+
if (!droppingNode) return null;
|
|
376
|
+
// May avoid overlap between line mark of first child & rect mark of parent
|
|
377
|
+
// if (droppingNode.isFirstChild && droppingPositionRef.value === 'before') {
|
|
378
|
+
// return null
|
|
379
|
+
// }
|
|
380
|
+
return droppingNode.parent;
|
|
381
|
+
});
|
|
382
|
+
// shallow watch data
|
|
383
|
+
let isDataReset = false;
|
|
384
|
+
watch(toRef(props, 'data'), () => {
|
|
385
|
+
isDataReset = true;
|
|
386
|
+
void nextTick(() => {
|
|
387
|
+
isDataReset = false;
|
|
388
|
+
});
|
|
389
|
+
loadingKeysRef.value.clear();
|
|
390
|
+
pendingNodeKeyRef.value = null;
|
|
391
|
+
resetDndState();
|
|
392
|
+
}, {
|
|
393
|
+
deep: false
|
|
394
|
+
});
|
|
395
|
+
let expandAnimationDisabled = false;
|
|
396
|
+
const disableExpandAnimationForOneTick = () => {
|
|
397
|
+
expandAnimationDisabled = true;
|
|
398
|
+
void nextTick(() => {
|
|
399
|
+
expandAnimationDisabled = false;
|
|
400
|
+
});
|
|
401
|
+
};
|
|
402
|
+
let memoizedExpandedKeys;
|
|
403
|
+
watch(toRef(props, 'pattern'), (value, oldValue) => {
|
|
404
|
+
if (props.showIrrelevantNodes) {
|
|
405
|
+
memoizedExpandedKeys = undefined;
|
|
406
|
+
if (value) {
|
|
407
|
+
const {
|
|
408
|
+
expandedKeys: expandedKeysAfterChange,
|
|
409
|
+
highlightKeySet
|
|
410
|
+
} = keysWithFilter(props.data, props.pattern, props.keyField, props.childrenField, mergedFilterRef.value);
|
|
411
|
+
uncontrolledHighlightKeySetRef.value = highlightKeySet;
|
|
412
|
+
disableExpandAnimationForOneTick();
|
|
413
|
+
doUpdateExpandedKeys(expandedKeysAfterChange, getOptionsByKeys(expandedKeysAfterChange), {
|
|
414
|
+
node: null,
|
|
415
|
+
action: 'filter'
|
|
416
|
+
});
|
|
417
|
+
} else {
|
|
418
|
+
uncontrolledHighlightKeySetRef.value = new Set();
|
|
419
|
+
}
|
|
420
|
+
} else {
|
|
421
|
+
if (!value.length) {
|
|
422
|
+
if (memoizedExpandedKeys !== undefined) {
|
|
423
|
+
disableExpandAnimationForOneTick();
|
|
424
|
+
doUpdateExpandedKeys(memoizedExpandedKeys, getOptionsByKeys(memoizedExpandedKeys), {
|
|
425
|
+
node: null,
|
|
426
|
+
action: 'filter'
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
} else {
|
|
430
|
+
if (!oldValue.length) {
|
|
431
|
+
memoizedExpandedKeys = mergedExpandedKeysRef.value;
|
|
432
|
+
}
|
|
433
|
+
const {
|
|
434
|
+
expandedKeys
|
|
435
|
+
} = filteredTreeInfoRef.value;
|
|
436
|
+
if (expandedKeys !== undefined) {
|
|
437
|
+
disableExpandAnimationForOneTick();
|
|
438
|
+
doUpdateExpandedKeys(expandedKeys, getOptionsByKeys(expandedKeys), {
|
|
439
|
+
node: null,
|
|
440
|
+
action: 'filter'
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
function triggerLoading(node) {
|
|
447
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
448
|
+
const {
|
|
449
|
+
onLoad
|
|
450
|
+
} = props;
|
|
451
|
+
if (!onLoad) {
|
|
452
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
453
|
+
warn('tree', 'There is unloaded node in data but props.onLoad is not specified.');
|
|
454
|
+
}
|
|
455
|
+
yield Promise.resolve();
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
const {
|
|
459
|
+
value: loadingKeys
|
|
460
|
+
} = loadingKeysRef;
|
|
461
|
+
if (!loadingKeys.has(node.key)) {
|
|
462
|
+
loadingKeys.add(node.key);
|
|
463
|
+
try {
|
|
464
|
+
const loadResult = yield onLoad(node.rawNode);
|
|
465
|
+
if (loadResult === false) {
|
|
466
|
+
resetDragExpandState();
|
|
467
|
+
}
|
|
468
|
+
} catch (loadError) {
|
|
469
|
+
console.error(loadError);
|
|
470
|
+
resetDragExpandState();
|
|
471
|
+
}
|
|
472
|
+
loadingKeys.delete(node.key);
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
watchEffect(() => {
|
|
477
|
+
var _a;
|
|
478
|
+
const {
|
|
479
|
+
value: displayTreeMate
|
|
480
|
+
} = displayTreeMateRef;
|
|
481
|
+
if (!displayTreeMate) return;
|
|
482
|
+
const {
|
|
483
|
+
getNode
|
|
484
|
+
} = displayTreeMate;
|
|
485
|
+
(_a = mergedExpandedKeysRef.value) === null || _a === void 0 ? void 0 : _a.forEach(key => {
|
|
486
|
+
const node = getNode(key);
|
|
487
|
+
if (node && !node.shallowLoaded) {
|
|
488
|
+
void triggerLoading(node);
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
});
|
|
492
|
+
// animation in progress
|
|
493
|
+
const aipRef = ref(false);
|
|
494
|
+
// animation flattened nodes
|
|
495
|
+
const afNodesRef = ref([]);
|
|
496
|
+
// Note: Since the virtual list depends on min height, if there's a node
|
|
497
|
+
// whose height starts from 0, the virtual list will have a wrong height
|
|
498
|
+
// during animation. This will seldom cause wired scrollbar status. It is
|
|
499
|
+
// fixable and need some changes in vueuc, I've no time so I just leave it
|
|
500
|
+
// here. Maybe the bug won't be fixed during the life time of the project.
|
|
501
|
+
watch(expandedNonLoadingKeysRef, (value, prevValue) => {
|
|
502
|
+
if (!props.animated || expandAnimationDisabled) {
|
|
503
|
+
void nextTick(syncScrollbar);
|
|
504
|
+
return;
|
|
505
|
+
}
|
|
506
|
+
if (isDataReset) {
|
|
507
|
+
return;
|
|
508
|
+
}
|
|
509
|
+
const nodeHeight = depx(themeRef.value.self.nodeHeight);
|
|
510
|
+
const prevVSet = new Set(prevValue);
|
|
511
|
+
let addedKey = null;
|
|
512
|
+
let removedKey = null;
|
|
513
|
+
for (const expandedKey of value) {
|
|
514
|
+
if (!prevVSet.has(expandedKey)) {
|
|
515
|
+
if (addedKey !== null) return; // multi expand, not triggered by click
|
|
516
|
+
addedKey = expandedKey;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
const currentVSet = new Set(value);
|
|
520
|
+
for (const expandedKey of prevValue) {
|
|
521
|
+
if (!currentVSet.has(expandedKey)) {
|
|
522
|
+
if (removedKey !== null) return; // multi collapse, not triggered by click
|
|
523
|
+
removedKey = expandedKey;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
if (addedKey === null && removedKey === null) {
|
|
527
|
+
// 1. multi action, not triggered by click
|
|
528
|
+
// 2. no action, don't know what happened
|
|
529
|
+
return;
|
|
530
|
+
}
|
|
531
|
+
const {
|
|
532
|
+
virtualScroll
|
|
533
|
+
} = props;
|
|
534
|
+
const viewportHeight = (virtualScroll ? virtualListInstRef.value.listElRef : selfElRef.value).offsetHeight;
|
|
535
|
+
const viewportItemCount = Math.ceil(viewportHeight / nodeHeight) + 1;
|
|
536
|
+
// play add animation
|
|
537
|
+
let baseExpandedKeys;
|
|
538
|
+
if (addedKey !== null) {
|
|
539
|
+
baseExpandedKeys = prevValue;
|
|
540
|
+
}
|
|
541
|
+
if (removedKey !== null) {
|
|
542
|
+
if (baseExpandedKeys === undefined) {
|
|
543
|
+
baseExpandedKeys = value;
|
|
544
|
+
} else {
|
|
545
|
+
baseExpandedKeys = baseExpandedKeys.filter(key => key !== removedKey);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
aipRef.value = true;
|
|
549
|
+
afNodesRef.value = displayTreeMateRef.value.getFlattenedNodes(baseExpandedKeys);
|
|
550
|
+
if (addedKey !== null) {
|
|
551
|
+
const expandedNodeIndex = afNodesRef.value.findIndex(node => node.key === addedKey);
|
|
552
|
+
if (~expandedNodeIndex) {
|
|
553
|
+
const children =
|
|
554
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
555
|
+
afNodesRef.value[expandedNodeIndex].children;
|
|
556
|
+
// sometimes user will pass leaf keys in
|
|
557
|
+
if (children) {
|
|
558
|
+
const expandedChildren = flatten(children, value);
|
|
559
|
+
afNodesRef.value.splice(expandedNodeIndex + 1, 0, {
|
|
560
|
+
__motion: true,
|
|
561
|
+
mode: 'expand',
|
|
562
|
+
height: virtualScroll ? expandedChildren.length * nodeHeight : undefined,
|
|
563
|
+
nodes: virtualScroll ? expandedChildren.slice(0, viewportItemCount) : expandedChildren
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
if (removedKey !== null) {
|
|
569
|
+
const collapsedNodeIndex = afNodesRef.value.findIndex(node => node.key === removedKey);
|
|
570
|
+
if (~collapsedNodeIndex) {
|
|
571
|
+
const collapsedNodeChildren = afNodesRef.value[collapsedNodeIndex].children;
|
|
572
|
+
// Sometime the whole tree is change, remove a key doesn't mean it is collapsed,
|
|
573
|
+
// but maybe children removed
|
|
574
|
+
if (!collapsedNodeChildren) return;
|
|
575
|
+
// play remove animation
|
|
576
|
+
aipRef.value = true;
|
|
577
|
+
const collapsedChildren = flatten(collapsedNodeChildren, value);
|
|
578
|
+
afNodesRef.value.splice(collapsedNodeIndex + 1, 0, {
|
|
579
|
+
__motion: true,
|
|
580
|
+
mode: 'collapse',
|
|
581
|
+
height: virtualScroll ? collapsedChildren.length * nodeHeight : undefined,
|
|
582
|
+
nodes: virtualScroll ? collapsedChildren.slice(0, viewportItemCount) : collapsedChildren
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
const getFIndexRef = computed(() => {
|
|
588
|
+
return createIndexGetter(fNodesRef.value);
|
|
589
|
+
});
|
|
590
|
+
const mergedFNodesRef = computed(() => {
|
|
591
|
+
if (aipRef.value) return afNodesRef.value;else return fNodesRef.value;
|
|
592
|
+
});
|
|
593
|
+
function syncScrollbar() {
|
|
594
|
+
const {
|
|
595
|
+
value: scrollbarInst
|
|
596
|
+
} = scrollbarInstRef;
|
|
597
|
+
if (scrollbarInst) scrollbarInst.sync();
|
|
598
|
+
}
|
|
599
|
+
function handleAfterEnter() {
|
|
600
|
+
aipRef.value = false;
|
|
601
|
+
if (props.virtualScroll) {
|
|
602
|
+
// If virtual scroll, we won't listen to resize during animation, so
|
|
603
|
+
// resize callback of virtual list won't be called and as a result
|
|
604
|
+
// scrollbar won't sync. We need to sync scrollbar manually.
|
|
605
|
+
void nextTick(syncScrollbar);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
function getOptionsByKeys(keys) {
|
|
609
|
+
const {
|
|
610
|
+
getNode
|
|
611
|
+
} = dataTreeMateRef.value;
|
|
612
|
+
return keys.map(key => {
|
|
613
|
+
var _a;
|
|
614
|
+
return ((_a = getNode(key)) === null || _a === void 0 ? void 0 : _a.rawNode) || null;
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
function doUpdateExpandedKeys(value, option, meta) {
|
|
618
|
+
const {
|
|
619
|
+
'onUpdate:expandedKeys': _onUpdateExpandedKeys,
|
|
620
|
+
onUpdateExpandedKeys
|
|
621
|
+
} = props;
|
|
622
|
+
uncontrolledExpandedKeysRef.value = value;
|
|
623
|
+
if (_onUpdateExpandedKeys) {
|
|
624
|
+
call(_onUpdateExpandedKeys, value, option, meta);
|
|
625
|
+
}
|
|
626
|
+
if (onUpdateExpandedKeys) {
|
|
627
|
+
call(onUpdateExpandedKeys, value, option, meta);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
function doUpdateCheckedKeys(value, option, meta) {
|
|
631
|
+
const {
|
|
632
|
+
'onUpdate:checkedKeys': _onUpdateCheckedKeys,
|
|
633
|
+
onUpdateCheckedKeys
|
|
634
|
+
} = props;
|
|
635
|
+
uncontrolledCheckedKeysRef.value = value;
|
|
636
|
+
if (onUpdateCheckedKeys) {
|
|
637
|
+
call(onUpdateCheckedKeys, value, option, meta);
|
|
638
|
+
}
|
|
639
|
+
if (_onUpdateCheckedKeys) {
|
|
640
|
+
call(_onUpdateCheckedKeys, value, option, meta);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
function doUpdateIndeterminateKeys(value, option) {
|
|
644
|
+
const {
|
|
645
|
+
'onUpdate:indeterminateKeys': _onUpdateIndeterminateKeys,
|
|
646
|
+
onUpdateIndeterminateKeys
|
|
647
|
+
} = props;
|
|
648
|
+
if (_onUpdateIndeterminateKeys) {
|
|
649
|
+
call(_onUpdateIndeterminateKeys, value, option);
|
|
650
|
+
}
|
|
651
|
+
if (onUpdateIndeterminateKeys) {
|
|
652
|
+
call(onUpdateIndeterminateKeys, value, option);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
function doUpdateSelectedKeys(value, option, meta) {
|
|
656
|
+
const {
|
|
657
|
+
'onUpdate:selectedKeys': _onUpdateSelectedKeys,
|
|
658
|
+
onUpdateSelectedKeys
|
|
659
|
+
} = props;
|
|
660
|
+
uncontrolledSelectedKeysRef.value = value;
|
|
661
|
+
if (onUpdateSelectedKeys) {
|
|
662
|
+
call(onUpdateSelectedKeys, value, option, meta);
|
|
663
|
+
}
|
|
664
|
+
if (_onUpdateSelectedKeys) {
|
|
665
|
+
call(_onUpdateSelectedKeys, value, option, meta);
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
// Drag & Drop
|
|
669
|
+
function doDragEnter(info) {
|
|
670
|
+
const {
|
|
671
|
+
onDragenter
|
|
672
|
+
} = props;
|
|
673
|
+
if (onDragenter) call(onDragenter, info);
|
|
674
|
+
}
|
|
675
|
+
function doDragLeave(info) {
|
|
676
|
+
const {
|
|
677
|
+
onDragleave
|
|
678
|
+
} = props;
|
|
679
|
+
if (onDragleave) call(onDragleave, info);
|
|
680
|
+
}
|
|
681
|
+
function doDragEnd(info) {
|
|
682
|
+
const {
|
|
683
|
+
onDragend
|
|
684
|
+
} = props;
|
|
685
|
+
if (onDragend) call(onDragend, info);
|
|
686
|
+
}
|
|
687
|
+
function doDragStart(info) {
|
|
688
|
+
const {
|
|
689
|
+
onDragstart
|
|
690
|
+
} = props;
|
|
691
|
+
if (onDragstart) call(onDragstart, info);
|
|
692
|
+
}
|
|
693
|
+
function doDragOver(info) {
|
|
694
|
+
const {
|
|
695
|
+
onDragover
|
|
696
|
+
} = props;
|
|
697
|
+
if (onDragover) call(onDragover, info);
|
|
698
|
+
}
|
|
699
|
+
function doDrop(info) {
|
|
700
|
+
const {
|
|
701
|
+
onDrop
|
|
702
|
+
} = props;
|
|
703
|
+
if (onDrop) call(onDrop, info);
|
|
704
|
+
}
|
|
705
|
+
function resetDndState() {
|
|
706
|
+
resetDragState();
|
|
707
|
+
resetDropState();
|
|
708
|
+
}
|
|
709
|
+
function resetDragState() {
|
|
710
|
+
draggingNodeRef.value = null;
|
|
711
|
+
}
|
|
712
|
+
function resetDropState() {
|
|
713
|
+
droppingOffsetLevelRef.value = 0;
|
|
714
|
+
droppingNodeRef.value = null;
|
|
715
|
+
droppingMouseNodeRef.value = null;
|
|
716
|
+
droppingPositionRef.value = null;
|
|
717
|
+
resetDragExpandState();
|
|
718
|
+
}
|
|
719
|
+
function resetDragExpandState() {
|
|
720
|
+
if (expandTimerId) {
|
|
721
|
+
window.clearTimeout(expandTimerId);
|
|
722
|
+
expandTimerId = null;
|
|
723
|
+
}
|
|
724
|
+
nodeKeyToBeExpanded = null;
|
|
725
|
+
}
|
|
726
|
+
function handleCheck(node, checked) {
|
|
727
|
+
// We don't guard for leaf only since we have done it in view layer
|
|
728
|
+
if (props.disabled || isNodeDisabled(node, props.disabledField)) {
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
if (props.internalUnifySelectCheck && !props.multiple) {
|
|
732
|
+
handleSelect(node);
|
|
733
|
+
return;
|
|
734
|
+
}
|
|
735
|
+
const checkedAction = checked ? 'check' : 'uncheck';
|
|
736
|
+
const {
|
|
737
|
+
checkedKeys,
|
|
738
|
+
indeterminateKeys
|
|
739
|
+
} = dataTreeMateRef.value[checkedAction](node.key, displayedCheckedKeysRef.value, {
|
|
740
|
+
cascade: props.cascade,
|
|
741
|
+
checkStrategy: mergedCheckStrategyRef.value,
|
|
742
|
+
allowNotLoaded: props.allowCheckingNotLoaded
|
|
743
|
+
});
|
|
744
|
+
doUpdateCheckedKeys(checkedKeys, getOptionsByKeys(checkedKeys), {
|
|
745
|
+
node: node.rawNode,
|
|
746
|
+
action: checkedAction
|
|
747
|
+
});
|
|
748
|
+
doUpdateIndeterminateKeys(indeterminateKeys, getOptionsByKeys(indeterminateKeys));
|
|
749
|
+
}
|
|
750
|
+
function toggleExpand(node) {
|
|
751
|
+
if (props.disabled) return;
|
|
752
|
+
const {
|
|
753
|
+
key
|
|
754
|
+
} = node;
|
|
755
|
+
const {
|
|
756
|
+
value: mergedExpandedKeys
|
|
757
|
+
} = mergedExpandedKeysRef;
|
|
758
|
+
const index = mergedExpandedKeys.findIndex(expandNodeId => expandNodeId === key);
|
|
759
|
+
if (~index) {
|
|
760
|
+
const expandedKeysAfterChange = Array.from(mergedExpandedKeys);
|
|
761
|
+
expandedKeysAfterChange.splice(index, 1);
|
|
762
|
+
doUpdateExpandedKeys(expandedKeysAfterChange, getOptionsByKeys(expandedKeysAfterChange), {
|
|
763
|
+
node: node.rawNode,
|
|
764
|
+
action: 'collapse'
|
|
765
|
+
});
|
|
766
|
+
} else {
|
|
767
|
+
const nodeToBeExpanded = displayTreeMateRef.value.getNode(key);
|
|
768
|
+
if (!nodeToBeExpanded || nodeToBeExpanded.isLeaf) {
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
let nextKeys;
|
|
772
|
+
if (props.accordion) {
|
|
773
|
+
const siblingKeySet = new Set(node.siblings.map(({
|
|
774
|
+
key
|
|
775
|
+
}) => key));
|
|
776
|
+
nextKeys = mergedExpandedKeys.filter(expandedKey => {
|
|
777
|
+
return !siblingKeySet.has(expandedKey);
|
|
778
|
+
});
|
|
779
|
+
nextKeys.push(key);
|
|
780
|
+
} else {
|
|
781
|
+
nextKeys = mergedExpandedKeys.concat(key);
|
|
782
|
+
}
|
|
783
|
+
doUpdateExpandedKeys(nextKeys, getOptionsByKeys(nextKeys), {
|
|
784
|
+
node: node.rawNode,
|
|
785
|
+
action: 'expand'
|
|
786
|
+
});
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
function handleSwitcherClick(node) {
|
|
790
|
+
if (props.disabled || aipRef.value) return;
|
|
791
|
+
toggleExpand(node);
|
|
792
|
+
}
|
|
793
|
+
function handleSelect(node) {
|
|
794
|
+
if (props.disabled || !props.selectable) {
|
|
795
|
+
return;
|
|
796
|
+
}
|
|
797
|
+
pendingNodeKeyRef.value = node.key;
|
|
798
|
+
if (props.internalUnifySelectCheck) {
|
|
799
|
+
const {
|
|
800
|
+
value: {
|
|
801
|
+
checkedKeys,
|
|
802
|
+
indeterminateKeys
|
|
803
|
+
}
|
|
804
|
+
} = checkedStatusRef;
|
|
805
|
+
if (props.multiple) {
|
|
806
|
+
handleCheck(node, !(checkedKeys.includes(node.key) || indeterminateKeys.includes(node.key)));
|
|
807
|
+
} else {
|
|
808
|
+
doUpdateCheckedKeys([node.key], getOptionsByKeys([node.key]), {
|
|
809
|
+
node: node.rawNode,
|
|
810
|
+
action: 'check'
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
if (props.multiple) {
|
|
815
|
+
const selectedKeys = Array.from(mergedSelectedKeysRef.value);
|
|
816
|
+
const index = selectedKeys.findIndex(key => key === node.key);
|
|
817
|
+
if (~index) {
|
|
818
|
+
if (props.cancelable) {
|
|
819
|
+
selectedKeys.splice(index, 1);
|
|
820
|
+
}
|
|
821
|
+
} else if (!~index) {
|
|
822
|
+
selectedKeys.push(node.key);
|
|
823
|
+
}
|
|
824
|
+
doUpdateSelectedKeys(selectedKeys, getOptionsByKeys(selectedKeys), {
|
|
825
|
+
node: node.rawNode,
|
|
826
|
+
action: ~index ? 'unselect' : 'select'
|
|
827
|
+
});
|
|
828
|
+
} else {
|
|
829
|
+
const selectedKeys = mergedSelectedKeysRef.value;
|
|
830
|
+
if (selectedKeys.includes(node.key)) {
|
|
831
|
+
if (props.cancelable) {
|
|
832
|
+
doUpdateSelectedKeys([], [], {
|
|
833
|
+
node: node.rawNode,
|
|
834
|
+
action: 'unselect'
|
|
835
|
+
});
|
|
836
|
+
}
|
|
837
|
+
} else {
|
|
838
|
+
doUpdateSelectedKeys([node.key], getOptionsByKeys([node.key]), {
|
|
839
|
+
node: node.rawNode,
|
|
840
|
+
action: 'select'
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
function expandDragEnterNode(node) {
|
|
846
|
+
if (expandTimerId) {
|
|
847
|
+
window.clearTimeout(expandTimerId);
|
|
848
|
+
expandTimerId = null;
|
|
849
|
+
}
|
|
850
|
+
// Don't expand leaf node.
|
|
851
|
+
if (node.isLeaf) return;
|
|
852
|
+
nodeKeyToBeExpanded = node.key;
|
|
853
|
+
const expand = () => {
|
|
854
|
+
if (nodeKeyToBeExpanded !== node.key) return;
|
|
855
|
+
const {
|
|
856
|
+
value: droppingMouseNode
|
|
857
|
+
} = droppingMouseNodeRef;
|
|
858
|
+
if (droppingMouseNode && droppingMouseNode.key === node.key && !mergedExpandedKeysRef.value.includes(node.key)) {
|
|
859
|
+
const nextKeys = mergedExpandedKeysRef.value.concat(node.key);
|
|
860
|
+
doUpdateExpandedKeys(nextKeys, getOptionsByKeys(nextKeys), {
|
|
861
|
+
node: node.rawNode,
|
|
862
|
+
action: 'expand'
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
expandTimerId = null;
|
|
866
|
+
nodeKeyToBeExpanded = null;
|
|
867
|
+
};
|
|
868
|
+
if (!node.shallowLoaded) {
|
|
869
|
+
expandTimerId = window.setTimeout(() => {
|
|
870
|
+
void triggerLoading(node).then(() => {
|
|
871
|
+
expand();
|
|
872
|
+
});
|
|
873
|
+
}, 1000);
|
|
874
|
+
} else {
|
|
875
|
+
expandTimerId = window.setTimeout(() => {
|
|
876
|
+
expand();
|
|
877
|
+
}, 1000);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
// Dnd
|
|
881
|
+
function handleDragEnter({
|
|
882
|
+
event,
|
|
883
|
+
node
|
|
884
|
+
}) {
|
|
885
|
+
// node should be a tmNode
|
|
886
|
+
if (!props.draggable || props.disabled || isNodeDisabled(node, props.disabledField)) {
|
|
887
|
+
return;
|
|
888
|
+
}
|
|
889
|
+
handleDragOver({
|
|
890
|
+
event,
|
|
891
|
+
node
|
|
892
|
+
}, false);
|
|
893
|
+
doDragEnter({
|
|
894
|
+
event,
|
|
895
|
+
node: node.rawNode
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
function handleDragLeave({
|
|
899
|
+
event,
|
|
900
|
+
node
|
|
901
|
+
}) {
|
|
902
|
+
if (!props.draggable || props.disabled || isNodeDisabled(node, props.disabledField)) {
|
|
903
|
+
return;
|
|
904
|
+
}
|
|
905
|
+
doDragLeave({
|
|
906
|
+
event,
|
|
907
|
+
node: node.rawNode
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
function handleDragLeaveTree(e) {
|
|
911
|
+
if (e.target !== e.currentTarget) return;
|
|
912
|
+
resetDropState();
|
|
913
|
+
}
|
|
914
|
+
// Dragend is ok, we don't need to add global listener to reset drag status
|
|
915
|
+
function handleDragEnd({
|
|
916
|
+
event,
|
|
917
|
+
node
|
|
918
|
+
}) {
|
|
919
|
+
resetDndState();
|
|
920
|
+
if (!props.draggable || props.disabled || isNodeDisabled(node, props.disabledField)) {
|
|
921
|
+
return;
|
|
922
|
+
}
|
|
923
|
+
doDragEnd({
|
|
924
|
+
event,
|
|
925
|
+
node: node.rawNode
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
function handleDragStart({
|
|
929
|
+
event,
|
|
930
|
+
node
|
|
931
|
+
}) {
|
|
932
|
+
var _a;
|
|
933
|
+
if (!props.draggable || props.disabled || isNodeDisabled(node, props.disabledField)) {
|
|
934
|
+
return;
|
|
935
|
+
}
|
|
936
|
+
// Most of time, the image will block user's view
|
|
937
|
+
emptyImage && ((_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.setDragImage(emptyImage, 0, 0));
|
|
938
|
+
dragStartX = event.clientX;
|
|
939
|
+
draggingNodeRef.value = node;
|
|
940
|
+
doDragStart({
|
|
941
|
+
event,
|
|
942
|
+
node: node.rawNode
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
function handleDragOver({
|
|
946
|
+
event,
|
|
947
|
+
node
|
|
948
|
+
}, emit = true) {
|
|
949
|
+
var _a;
|
|
950
|
+
if (!props.draggable || props.disabled || isNodeDisabled(node, props.disabledField)) {
|
|
951
|
+
return;
|
|
952
|
+
}
|
|
953
|
+
const {
|
|
954
|
+
value: draggingNode
|
|
955
|
+
} = draggingNodeRef;
|
|
956
|
+
if (!draggingNode) return;
|
|
957
|
+
const {
|
|
958
|
+
allowDrop,
|
|
959
|
+
indent
|
|
960
|
+
} = props;
|
|
961
|
+
if (emit) doDragOver({
|
|
962
|
+
event,
|
|
963
|
+
node: node.rawNode
|
|
964
|
+
});
|
|
965
|
+
// Update dropping node
|
|
966
|
+
const el = event.currentTarget;
|
|
967
|
+
const {
|
|
968
|
+
height: elOffsetHeight,
|
|
969
|
+
top: elClientTop
|
|
970
|
+
} = el.getBoundingClientRect();
|
|
971
|
+
const eventOffsetY = event.clientY - elClientTop;
|
|
972
|
+
let mousePosition;
|
|
973
|
+
const allowDropInside = allowDrop({
|
|
974
|
+
node: node.rawNode,
|
|
975
|
+
dropPosition: 'inside',
|
|
976
|
+
phase: 'drag'
|
|
977
|
+
});
|
|
978
|
+
if (allowDropInside) {
|
|
979
|
+
if (eventOffsetY <= 8) {
|
|
980
|
+
mousePosition = 'before';
|
|
981
|
+
} else if (eventOffsetY >= elOffsetHeight - 8) {
|
|
982
|
+
mousePosition = 'after';
|
|
983
|
+
} else {
|
|
984
|
+
mousePosition = 'inside';
|
|
985
|
+
}
|
|
986
|
+
} else {
|
|
987
|
+
if (eventOffsetY <= elOffsetHeight / 2) {
|
|
988
|
+
mousePosition = 'before';
|
|
989
|
+
} else {
|
|
990
|
+
mousePosition = 'after';
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
const {
|
|
994
|
+
value: getFindex
|
|
995
|
+
} = getFIndexRef;
|
|
996
|
+
/** determine the drop position and drop node */
|
|
997
|
+
/** the dropping node needn't to be the mouse hovering node! */
|
|
998
|
+
/**
|
|
999
|
+
* if there is something i've learned from implementing a complex
|
|
1000
|
+
* drag & drop. that is never write unit test before you really figure
|
|
1001
|
+
* out what behavior is exactly you want.
|
|
1002
|
+
*/
|
|
1003
|
+
let finalDropNode;
|
|
1004
|
+
let finalDropPosition;
|
|
1005
|
+
const hoverNodeFIndex = getFindex(node.key);
|
|
1006
|
+
if (hoverNodeFIndex === null) {
|
|
1007
|
+
resetDropState();
|
|
1008
|
+
return;
|
|
1009
|
+
}
|
|
1010
|
+
let mouseAtExpandedNonLeafNode = false;
|
|
1011
|
+
if (mousePosition === 'inside') {
|
|
1012
|
+
finalDropNode = node;
|
|
1013
|
+
finalDropPosition = 'inside';
|
|
1014
|
+
} else {
|
|
1015
|
+
if (mousePosition === 'before') {
|
|
1016
|
+
if (node.isFirstChild) {
|
|
1017
|
+
finalDropNode = node;
|
|
1018
|
+
finalDropPosition = 'before';
|
|
1019
|
+
} else {
|
|
1020
|
+
finalDropNode = fNodesRef.value[hoverNodeFIndex - 1];
|
|
1021
|
+
finalDropPosition = 'after';
|
|
1022
|
+
}
|
|
1023
|
+
} else {
|
|
1024
|
+
finalDropNode = node;
|
|
1025
|
+
finalDropPosition = 'after';
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
// If the node is non-leaf and it is expanded, we don't allow it to
|
|
1029
|
+
// drop after it and change it to drop before its next view sibling
|
|
1030
|
+
if (!finalDropNode.isLeaf && mergedExpandedKeysRef.value.includes(finalDropNode.key)) {
|
|
1031
|
+
mouseAtExpandedNonLeafNode = true;
|
|
1032
|
+
if (finalDropPosition === 'after') {
|
|
1033
|
+
finalDropNode = fNodesRef.value[hoverNodeFIndex + 1];
|
|
1034
|
+
if (!finalDropNode) {
|
|
1035
|
+
// maybe there is no next view sibling when non-leaf node has no
|
|
1036
|
+
// children and it is the last node in the tree
|
|
1037
|
+
finalDropNode = node;
|
|
1038
|
+
finalDropPosition = 'inside';
|
|
1039
|
+
} else {
|
|
1040
|
+
finalDropPosition = 'before';
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
const droppingMouseNode = finalDropNode;
|
|
1045
|
+
droppingMouseNodeRef.value = droppingMouseNode;
|
|
1046
|
+
// This is a speacial case, user is dragging a last child itself, so we
|
|
1047
|
+
// only view it as they are trying to drop after it.
|
|
1048
|
+
// There are some relevant codes in bailout 1's child branch.
|
|
1049
|
+
// Also, the expand bailout should have a high priority. If it's non-leaf
|
|
1050
|
+
// node and expanded, keep its origin drop position
|
|
1051
|
+
if (!mouseAtExpandedNonLeafNode && draggingNode.isLastChild && draggingNode.key === finalDropNode.key) {
|
|
1052
|
+
finalDropPosition = 'after';
|
|
1053
|
+
}
|
|
1054
|
+
if (finalDropPosition === 'after') {
|
|
1055
|
+
let offset = dragStartX - event.clientX; // drag left => > 0
|
|
1056
|
+
let offsetLevel = 0;
|
|
1057
|
+
while (offset >= indent / 2 &&
|
|
1058
|
+
// divide by 2 to make it easier to trigger
|
|
1059
|
+
finalDropNode.parent !== null && finalDropNode.isLastChild && offsetLevel < 1) {
|
|
1060
|
+
offset -= indent;
|
|
1061
|
+
offsetLevel += 1;
|
|
1062
|
+
finalDropNode = finalDropNode.parent;
|
|
1063
|
+
}
|
|
1064
|
+
droppingOffsetLevelRef.value = offsetLevel;
|
|
1065
|
+
} else {
|
|
1066
|
+
droppingOffsetLevelRef.value = 0;
|
|
1067
|
+
}
|
|
1068
|
+
// Bailout 1
|
|
1069
|
+
// Drag self into self
|
|
1070
|
+
// Drag it into direct parent
|
|
1071
|
+
if (draggingNode.contains(finalDropNode) || finalDropPosition === 'inside' && ((_a = draggingNode.parent) === null || _a === void 0 ? void 0 : _a.key) === finalDropNode.key) {
|
|
1072
|
+
if (draggingNode.key === droppingMouseNode.key && draggingNode.key === finalDropNode.key) {
|
|
1073
|
+
// This is special case that we want ui to show a mark to guide user
|
|
1074
|
+
// to start dragging. Nor they will think nothing happens.
|
|
1075
|
+
// However this is an invalid drop, we need to guard it inside
|
|
1076
|
+
// handleDrop
|
|
1077
|
+
} else {
|
|
1078
|
+
resetDropState();
|
|
1079
|
+
return;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
// Bailout 3
|
|
1083
|
+
if (!allowDrop({
|
|
1084
|
+
node: finalDropNode.rawNode,
|
|
1085
|
+
dropPosition: finalDropPosition,
|
|
1086
|
+
phase: 'drag'
|
|
1087
|
+
})) {
|
|
1088
|
+
resetDropState();
|
|
1089
|
+
return;
|
|
1090
|
+
}
|
|
1091
|
+
if (draggingNode.key === finalDropNode.key) {
|
|
1092
|
+
// don't expand when drag on itself
|
|
1093
|
+
resetDragExpandState();
|
|
1094
|
+
} else {
|
|
1095
|
+
if (nodeKeyToBeExpanded !== finalDropNode.key) {
|
|
1096
|
+
if (finalDropPosition === 'inside') {
|
|
1097
|
+
if (props.expandOnDragenter) {
|
|
1098
|
+
expandDragEnterNode(finalDropNode);
|
|
1099
|
+
// Bailout 4
|
|
1100
|
+
// not try to loading
|
|
1101
|
+
if (!finalDropNode.shallowLoaded && nodeKeyToBeExpanded !== finalDropNode.key) {
|
|
1102
|
+
resetDndState();
|
|
1103
|
+
return;
|
|
1104
|
+
}
|
|
1105
|
+
} else {
|
|
1106
|
+
// Bailout 5
|
|
1107
|
+
// never expands on drag
|
|
1108
|
+
if (!finalDropNode.shallowLoaded) {
|
|
1109
|
+
resetDndState();
|
|
1110
|
+
return;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
} else {
|
|
1114
|
+
resetDragExpandState();
|
|
1115
|
+
}
|
|
1116
|
+
} else {
|
|
1117
|
+
if (finalDropPosition !== 'inside') {
|
|
1118
|
+
resetDragExpandState();
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
droppingPositionRef.value = finalDropPosition;
|
|
1123
|
+
droppingNodeRef.value = finalDropNode;
|
|
1124
|
+
}
|
|
1125
|
+
function handleDrop({
|
|
1126
|
+
event,
|
|
1127
|
+
node,
|
|
1128
|
+
dropPosition
|
|
1129
|
+
}) {
|
|
1130
|
+
if (!props.draggable || props.disabled || isNodeDisabled(node, props.disabledField)) {
|
|
1131
|
+
return;
|
|
1132
|
+
}
|
|
1133
|
+
const {
|
|
1134
|
+
value: draggingNode
|
|
1135
|
+
} = draggingNodeRef;
|
|
1136
|
+
const {
|
|
1137
|
+
value: droppingNode
|
|
1138
|
+
} = droppingNodeRef;
|
|
1139
|
+
const {
|
|
1140
|
+
value: droppingPosition
|
|
1141
|
+
} = droppingPositionRef;
|
|
1142
|
+
if (!draggingNode || !droppingNode || !droppingPosition) {
|
|
1143
|
+
return;
|
|
1144
|
+
}
|
|
1145
|
+
// Bailout 1
|
|
1146
|
+
if (!props.allowDrop({
|
|
1147
|
+
node: droppingNode.rawNode,
|
|
1148
|
+
dropPosition: droppingPosition,
|
|
1149
|
+
phase: 'drag'
|
|
1150
|
+
})) {
|
|
1151
|
+
return;
|
|
1152
|
+
}
|
|
1153
|
+
// Bailout 2
|
|
1154
|
+
// This is a special case to guard since we want ui to show the status
|
|
1155
|
+
// but not to emit a event
|
|
1156
|
+
if (draggingNode.key === droppingNode.key) {
|
|
1157
|
+
return;
|
|
1158
|
+
}
|
|
1159
|
+
// Bailout 3
|
|
1160
|
+
// insert before its next node
|
|
1161
|
+
// insert after its prev node
|
|
1162
|
+
if (droppingPosition === 'before') {
|
|
1163
|
+
const nextNode = draggingNode.getNext({
|
|
1164
|
+
includeDisabled: true
|
|
1165
|
+
});
|
|
1166
|
+
if (nextNode) {
|
|
1167
|
+
if (nextNode.key === droppingNode.key) {
|
|
1168
|
+
resetDropState();
|
|
1169
|
+
return;
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
if (droppingPosition === 'after') {
|
|
1174
|
+
const prevNode = draggingNode.getPrev({
|
|
1175
|
+
includeDisabled: true
|
|
1176
|
+
});
|
|
1177
|
+
if (prevNode) {
|
|
1178
|
+
if (prevNode.key === droppingNode.key) {
|
|
1179
|
+
resetDropState();
|
|
1180
|
+
return;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
doDrop({
|
|
1185
|
+
event,
|
|
1186
|
+
node: droppingNode.rawNode,
|
|
1187
|
+
dragNode: draggingNode.rawNode,
|
|
1188
|
+
dropPosition
|
|
1189
|
+
});
|
|
1190
|
+
resetDndState();
|
|
1191
|
+
}
|
|
1192
|
+
function handleScroll() {
|
|
1193
|
+
syncScrollbar();
|
|
1194
|
+
}
|
|
1195
|
+
function handleResize() {
|
|
1196
|
+
syncScrollbar();
|
|
1197
|
+
}
|
|
1198
|
+
function handleFocusout(e) {
|
|
1199
|
+
var _a;
|
|
1200
|
+
if (props.virtualScroll || props.internalScrollable) {
|
|
1201
|
+
const {
|
|
1202
|
+
value: scrollbarInst
|
|
1203
|
+
} = scrollbarInstRef;
|
|
1204
|
+
if ((_a = scrollbarInst === null || scrollbarInst === void 0 ? void 0 : scrollbarInst.containerRef) === null || _a === void 0 ? void 0 : _a.contains(e.relatedTarget)) {
|
|
1205
|
+
return;
|
|
1206
|
+
}
|
|
1207
|
+
pendingNodeKeyRef.value = null;
|
|
1208
|
+
} else {
|
|
1209
|
+
const {
|
|
1210
|
+
value: selfEl
|
|
1211
|
+
} = selfElRef;
|
|
1212
|
+
if (selfEl === null || selfEl === void 0 ? void 0 : selfEl.contains(e.relatedTarget)) return;
|
|
1213
|
+
pendingNodeKeyRef.value = null;
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
watch(pendingNodeKeyRef, value => {
|
|
1217
|
+
var _a, _b;
|
|
1218
|
+
if (value === null) return;
|
|
1219
|
+
if (props.virtualScroll) {
|
|
1220
|
+
(_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.scrollTo({
|
|
1221
|
+
key: value
|
|
1222
|
+
});
|
|
1223
|
+
} else if (props.internalScrollable) {
|
|
1224
|
+
const {
|
|
1225
|
+
value: scrollbarInst
|
|
1226
|
+
} = scrollbarInstRef;
|
|
1227
|
+
if (scrollbarInst === null) return;
|
|
1228
|
+
const targetEl = (_b = scrollbarInst.contentRef) === null || _b === void 0 ? void 0 : _b.querySelector(`[data-key="${createDataKey(value)}"]`);
|
|
1229
|
+
if (!targetEl) return;
|
|
1230
|
+
scrollbarInst.scrollTo({
|
|
1231
|
+
el: targetEl
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1234
|
+
});
|
|
1235
|
+
provide(treeInjectionKey, {
|
|
1236
|
+
loadingKeysRef,
|
|
1237
|
+
highlightKeySetRef: mergedHighlightKeySetRef,
|
|
1238
|
+
displayedCheckedKeysRef,
|
|
1239
|
+
displayedIndeterminateKeysRef,
|
|
1240
|
+
mergedSelectedKeysRef,
|
|
1241
|
+
mergedExpandedKeysRef,
|
|
1242
|
+
mergedThemeRef: themeRef,
|
|
1243
|
+
mergedCheckStrategyRef,
|
|
1244
|
+
nodePropsRef: toRef(props, 'nodeProps'),
|
|
1245
|
+
disabledRef: toRef(props, 'disabled'),
|
|
1246
|
+
checkableRef: toRef(props, 'checkable'),
|
|
1247
|
+
selectableRef: toRef(props, 'selectable'),
|
|
1248
|
+
expandOnClickRef: toRef(props, 'expandOnClick'),
|
|
1249
|
+
onLoadRef: toRef(props, 'onLoad'),
|
|
1250
|
+
draggableRef: toRef(props, 'draggable'),
|
|
1251
|
+
blockLineRef: toRef(props, 'blockLine'),
|
|
1252
|
+
indentRef: toRef(props, 'indent'),
|
|
1253
|
+
cascadeRef: toRef(props, 'cascade'),
|
|
1254
|
+
checkOnClickRef: toRef(props, 'checkOnClick'),
|
|
1255
|
+
checkboxPlacementRef: props.checkboxPlacement,
|
|
1256
|
+
droppingMouseNodeRef,
|
|
1257
|
+
droppingNodeParentRef,
|
|
1258
|
+
draggingNodeRef,
|
|
1259
|
+
droppingPositionRef,
|
|
1260
|
+
droppingOffsetLevelRef,
|
|
1261
|
+
fNodesRef,
|
|
1262
|
+
pendingNodeKeyRef,
|
|
1263
|
+
showLineRef: toRef(props, 'showLine'),
|
|
1264
|
+
disabledFieldRef: toRef(props, 'disabledField'),
|
|
1265
|
+
internalScrollableRef: toRef(props, 'internalScrollable'),
|
|
1266
|
+
internalCheckboxFocusableRef: toRef(props, 'internalCheckboxFocusable'),
|
|
1267
|
+
internalTreeSelect: props.internalTreeSelect,
|
|
1268
|
+
renderLabelRef: toRef(props, 'renderLabel'),
|
|
1269
|
+
renderPrefixRef: toRef(props, 'renderPrefix'),
|
|
1270
|
+
renderSuffixRef: toRef(props, 'renderSuffix'),
|
|
1271
|
+
renderSwitcherIconRef: toRef(props, 'renderSwitcherIcon'),
|
|
1272
|
+
labelFieldRef: toRef(props, 'labelField'),
|
|
1273
|
+
multipleRef: toRef(props, 'multiple'),
|
|
1274
|
+
overrideDefaultNodeClickBehaviorRef: toRef(props, 'overrideDefaultNodeClickBehavior'),
|
|
1275
|
+
handleSwitcherClick,
|
|
1276
|
+
handleDragEnd,
|
|
1277
|
+
handleDragEnter,
|
|
1278
|
+
handleDragLeave,
|
|
1279
|
+
handleDragStart,
|
|
1280
|
+
handleDrop,
|
|
1281
|
+
handleDragOver,
|
|
1282
|
+
handleSelect,
|
|
1283
|
+
handleCheck
|
|
1284
|
+
});
|
|
1285
|
+
function scrollTo(options, y) {
|
|
1286
|
+
var _a, _b;
|
|
1287
|
+
if (typeof options === 'number') {
|
|
1288
|
+
(_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.scrollTo(options, y || 0);
|
|
1289
|
+
} else {
|
|
1290
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
1291
|
+
(_b = virtualListInstRef.value) === null || _b === void 0 ? void 0 : _b.scrollTo(options);
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
const exposedMethods = {
|
|
1295
|
+
handleKeydown,
|
|
1296
|
+
scrollTo,
|
|
1297
|
+
getCheckedData: () => {
|
|
1298
|
+
if (!props.checkable) return {
|
|
1299
|
+
keys: [],
|
|
1300
|
+
options: []
|
|
1301
|
+
};
|
|
1302
|
+
const {
|
|
1303
|
+
checkedKeys
|
|
1304
|
+
} = checkedStatusRef.value;
|
|
1305
|
+
return {
|
|
1306
|
+
keys: checkedKeys,
|
|
1307
|
+
options: getOptionsByKeys(checkedKeys)
|
|
1308
|
+
};
|
|
1309
|
+
},
|
|
1310
|
+
getIndeterminateData: () => {
|
|
1311
|
+
if (!props.checkable) return {
|
|
1312
|
+
keys: [],
|
|
1313
|
+
options: []
|
|
1314
|
+
};
|
|
1315
|
+
const {
|
|
1316
|
+
indeterminateKeys
|
|
1317
|
+
} = checkedStatusRef.value;
|
|
1318
|
+
return {
|
|
1319
|
+
keys: indeterminateKeys,
|
|
1320
|
+
options: getOptionsByKeys(indeterminateKeys)
|
|
1321
|
+
};
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1324
|
+
const cssVarsRef = computed(() => {
|
|
1325
|
+
const {
|
|
1326
|
+
common: {
|
|
1327
|
+
cubicBezierEaseInOut
|
|
1328
|
+
},
|
|
1329
|
+
self: {
|
|
1330
|
+
fontSize,
|
|
1331
|
+
nodeBorderRadius,
|
|
1332
|
+
nodeColorHover,
|
|
1333
|
+
nodeColorPressed,
|
|
1334
|
+
nodeColorActive,
|
|
1335
|
+
arrowColor,
|
|
1336
|
+
loadingColor,
|
|
1337
|
+
nodeTextColor,
|
|
1338
|
+
nodeTextColorDisabled,
|
|
1339
|
+
dropMarkColor,
|
|
1340
|
+
nodeWrapperPadding,
|
|
1341
|
+
nodeHeight,
|
|
1342
|
+
lineHeight,
|
|
1343
|
+
lineColor
|
|
1344
|
+
}
|
|
1345
|
+
} = themeRef.value;
|
|
1346
|
+
const lineOffsetTop = getPadding(nodeWrapperPadding, 'top');
|
|
1347
|
+
const lineOffsetBottom = getPadding(nodeWrapperPadding, 'bottom');
|
|
1348
|
+
const nodeContentHeight = pxfy(depx(nodeHeight) - depx(lineOffsetTop) - depx(lineOffsetBottom));
|
|
1349
|
+
return {
|
|
1350
|
+
'--n-arrow-color': arrowColor,
|
|
1351
|
+
'--n-loading-color': loadingColor,
|
|
1352
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
1353
|
+
'--n-font-size': fontSize,
|
|
1354
|
+
'--n-node-border-radius': nodeBorderRadius,
|
|
1355
|
+
'--n-node-color-active': nodeColorActive,
|
|
1356
|
+
'--n-node-color-hover': nodeColorHover,
|
|
1357
|
+
'--n-node-color-pressed': nodeColorPressed,
|
|
1358
|
+
'--n-node-text-color': nodeTextColor,
|
|
1359
|
+
'--n-node-text-color-disabled': nodeTextColorDisabled,
|
|
1360
|
+
'--n-drop-mark-color': dropMarkColor,
|
|
1361
|
+
'--n-node-wrapper-padding': nodeWrapperPadding,
|
|
1362
|
+
'--n-line-offset-top': `-${lineOffsetTop}`,
|
|
1363
|
+
'--n-line-offset-bottom': `-${lineOffsetBottom}`,
|
|
1364
|
+
'--n-node-content-height': nodeContentHeight,
|
|
1365
|
+
'--n-line-height': lineHeight,
|
|
1366
|
+
'--n-line-color': lineColor
|
|
1367
|
+
};
|
|
1368
|
+
});
|
|
1369
|
+
const themeClassHandle = inlineThemeDisabled ? useThemeClass('tree', undefined, cssVarsRef, props) : undefined;
|
|
1370
|
+
return Object.assign(Object.assign({}, exposedMethods), {
|
|
1371
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
1372
|
+
mergedTheme: themeRef,
|
|
1373
|
+
rtlEnabled: rtlEnabledRef,
|
|
1374
|
+
fNodes: mergedFNodesRef,
|
|
1375
|
+
aip: aipRef,
|
|
1376
|
+
selfElRef,
|
|
1377
|
+
virtualListInstRef,
|
|
1378
|
+
scrollbarInstRef,
|
|
1379
|
+
handleFocusout,
|
|
1380
|
+
handleDragLeaveTree,
|
|
1381
|
+
handleScroll,
|
|
1382
|
+
getScrollContainer,
|
|
1383
|
+
getScrollContent,
|
|
1384
|
+
handleAfterEnter,
|
|
1385
|
+
handleResize,
|
|
1386
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
1387
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
1388
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
1389
|
+
});
|
|
1390
|
+
},
|
|
1391
|
+
render() {
|
|
1392
|
+
var _a;
|
|
1393
|
+
const {
|
|
1394
|
+
fNodes,
|
|
1395
|
+
internalRenderEmpty
|
|
1396
|
+
} = this;
|
|
1397
|
+
if (!fNodes.length && internalRenderEmpty) {
|
|
1398
|
+
return internalRenderEmpty();
|
|
1399
|
+
}
|
|
1400
|
+
const {
|
|
1401
|
+
mergedClsPrefix,
|
|
1402
|
+
blockNode,
|
|
1403
|
+
blockLine,
|
|
1404
|
+
draggable,
|
|
1405
|
+
disabled,
|
|
1406
|
+
internalFocusable,
|
|
1407
|
+
checkable,
|
|
1408
|
+
handleKeydown,
|
|
1409
|
+
rtlEnabled,
|
|
1410
|
+
handleFocusout,
|
|
1411
|
+
scrollbarProps
|
|
1412
|
+
} = this;
|
|
1413
|
+
const mergedFocusable = internalFocusable && !disabled;
|
|
1414
|
+
const tabindex = mergedFocusable ? '0' : undefined;
|
|
1415
|
+
const treeClass = [`${mergedClsPrefix}-tree`, rtlEnabled && `${mergedClsPrefix}-tree--rtl`, checkable && `${mergedClsPrefix}-tree--checkable`, (blockLine || blockNode) && `${mergedClsPrefix}-tree--block-node`, blockLine && `${mergedClsPrefix}-tree--block-line`];
|
|
1416
|
+
const createNode = tmNode => {
|
|
1417
|
+
return '__motion' in tmNode ? h(MotionWrapper, {
|
|
1418
|
+
height: tmNode.height,
|
|
1419
|
+
nodes: tmNode.nodes,
|
|
1420
|
+
clsPrefix: mergedClsPrefix,
|
|
1421
|
+
mode: tmNode.mode,
|
|
1422
|
+
onAfterEnter: this.handleAfterEnter
|
|
1423
|
+
}) : h(NTreeNode, {
|
|
1424
|
+
key: tmNode.key,
|
|
1425
|
+
tmNode: tmNode,
|
|
1426
|
+
clsPrefix: mergedClsPrefix
|
|
1427
|
+
});
|
|
1428
|
+
};
|
|
1429
|
+
if (this.virtualScroll) {
|
|
1430
|
+
const {
|
|
1431
|
+
mergedTheme,
|
|
1432
|
+
internalScrollablePadding
|
|
1433
|
+
} = this;
|
|
1434
|
+
const padding = getPadding(internalScrollablePadding || '0');
|
|
1435
|
+
return h(NxScrollbar, Object.assign({}, scrollbarProps, {
|
|
1436
|
+
ref: "scrollbarInstRef",
|
|
1437
|
+
onDragleave: draggable ? this.handleDragLeaveTree : undefined,
|
|
1438
|
+
container: this.getScrollContainer,
|
|
1439
|
+
content: this.getScrollContent,
|
|
1440
|
+
class: treeClass,
|
|
1441
|
+
theme: mergedTheme.peers.Scrollbar,
|
|
1442
|
+
themeOverrides: mergedTheme.peerOverrides.Scrollbar,
|
|
1443
|
+
tabindex: tabindex,
|
|
1444
|
+
onKeydown: mergedFocusable ? handleKeydown : undefined,
|
|
1445
|
+
onFocusout: mergedFocusable ? handleFocusout : undefined
|
|
1446
|
+
}), {
|
|
1447
|
+
default: () => {
|
|
1448
|
+
var _a;
|
|
1449
|
+
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1450
|
+
return !fNodes.length ? resolveSlot(this.$slots.empty, () => [h(NEmpty, {
|
|
1451
|
+
class: `${mergedClsPrefix}-tree__empty`,
|
|
1452
|
+
theme: this.mergedTheme.peers.Empty,
|
|
1453
|
+
themeOverrides: this.mergedTheme.peerOverrides.Empty
|
|
1454
|
+
})]) : h(VVirtualList, {
|
|
1455
|
+
ref: "virtualListInstRef",
|
|
1456
|
+
items: this.fNodes,
|
|
1457
|
+
itemSize: depx(mergedTheme.self.nodeHeight),
|
|
1458
|
+
ignoreItemResize: this.aip,
|
|
1459
|
+
paddingTop: padding.top,
|
|
1460
|
+
paddingBottom: padding.bottom,
|
|
1461
|
+
class: this.themeClass,
|
|
1462
|
+
style: [this.cssVars, {
|
|
1463
|
+
paddingLeft: padding.left,
|
|
1464
|
+
paddingRight: padding.right
|
|
1465
|
+
}],
|
|
1466
|
+
onScroll: this.handleScroll,
|
|
1467
|
+
onResize: this.handleResize,
|
|
1468
|
+
showScrollbar: false,
|
|
1469
|
+
itemResizable: true
|
|
1470
|
+
}, {
|
|
1471
|
+
default: ({
|
|
1472
|
+
item
|
|
1473
|
+
}) => createNode(item)
|
|
1474
|
+
});
|
|
1475
|
+
}
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
const {
|
|
1479
|
+
internalScrollable
|
|
1480
|
+
} = this;
|
|
1481
|
+
treeClass.push(this.themeClass);
|
|
1482
|
+
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1483
|
+
if (internalScrollable) {
|
|
1484
|
+
return h(NxScrollbar, Object.assign({}, scrollbarProps, {
|
|
1485
|
+
class: treeClass,
|
|
1486
|
+
tabindex: tabindex,
|
|
1487
|
+
onKeydown: mergedFocusable ? handleKeydown : undefined,
|
|
1488
|
+
onFocusout: mergedFocusable ? handleFocusout : undefined,
|
|
1489
|
+
style: this.cssVars,
|
|
1490
|
+
contentStyle: {
|
|
1491
|
+
padding: this.internalScrollablePadding
|
|
1492
|
+
}
|
|
1493
|
+
}), {
|
|
1494
|
+
default: () => h("div", {
|
|
1495
|
+
onDragleave: draggable ? this.handleDragLeaveTree : undefined,
|
|
1496
|
+
ref: "selfElRef"
|
|
1497
|
+
}, this.fNodes.map(createNode))
|
|
1498
|
+
});
|
|
1499
|
+
} else {
|
|
1500
|
+
return h("div", {
|
|
1501
|
+
class: treeClass,
|
|
1502
|
+
tabindex: tabindex,
|
|
1503
|
+
ref: "selfElRef",
|
|
1504
|
+
style: this.cssVars,
|
|
1505
|
+
onKeydown: mergedFocusable ? handleKeydown : undefined,
|
|
1506
|
+
onFocusout: mergedFocusable ? handleFocusout : undefined,
|
|
1507
|
+
onDragleave: draggable ? this.handleDragLeaveTree : undefined
|
|
1508
|
+
}, !fNodes.length ? resolveSlot(this.$slots.empty, () => [h(NEmpty, {
|
|
1509
|
+
class: `${mergedClsPrefix}-tree__empty`,
|
|
1510
|
+
theme: this.mergedTheme.peers.Empty,
|
|
1511
|
+
themeOverrides: this.mergedTheme.peerOverrides.Empty
|
|
1512
|
+
})]) : fNodes.map(createNode));
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
});
|