naive-ui 2.33.2 → 2.33.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/README.zh-CN.md +3 -2
- package/dist/index.js +8272 -3401
- package/dist/index.prod.js +2 -2
- package/es/_internal/clear/src/Clear.d.ts +1 -1
- package/es/_internal/close/src/Close.d.ts +10 -1
- package/es/_internal/close/src/Close.js +7 -2
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +1 -1
- package/es/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
- package/es/_internal/icon/src/Icon.d.ts +1 -1
- package/es/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
- package/es/_internal/icons/Add.d.ts +1 -1
- package/es/_internal/icons/ArrowBack.d.ts +1 -1
- package/es/_internal/icons/ArrowDown.d.ts +1 -1
- package/es/_internal/icons/ArrowUp.d.ts +1 -1
- package/es/_internal/icons/Attach.d.ts +1 -1
- package/es/_internal/icons/Backward.d.ts +1 -1
- package/es/_internal/icons/Cancel.d.ts +1 -1
- package/es/_internal/icons/Checkmark.d.ts +1 -1
- package/es/_internal/icons/ChevronDown.d.ts +1 -1
- package/es/_internal/icons/ChevronDownFilled.d.ts +1 -1
- package/es/_internal/icons/ChevronLeft.d.ts +1 -1
- package/es/_internal/icons/ChevronRight.d.ts +1 -1
- package/es/_internal/icons/Clear.d.ts +1 -1
- package/es/_internal/icons/Close.d.ts +1 -1
- package/es/_internal/icons/Date.d.ts +1 -1
- package/es/_internal/icons/Download.d.ts +1 -1
- package/es/_internal/icons/Empty.d.ts +1 -1
- package/es/_internal/icons/Error.d.ts +1 -1
- package/es/_internal/icons/Eye.d.ts +1 -1
- package/es/_internal/icons/EyeOff.d.ts +1 -1
- package/es/_internal/icons/FastBackward.d.ts +1 -1
- package/es/_internal/icons/FastForward.d.ts +1 -1
- package/es/_internal/icons/File.d.ts +1 -1
- package/es/_internal/icons/Filter.d.ts +1 -1
- package/es/_internal/icons/Forward.d.ts +1 -1
- package/es/_internal/icons/Info.d.ts +1 -1
- package/es/_internal/icons/More.d.ts +1 -1
- package/es/_internal/icons/Photo.d.ts +1 -1
- package/es/_internal/icons/Remove.d.ts +1 -1
- package/es/_internal/icons/ResizeSmall.d.ts +1 -1
- package/es/_internal/icons/Retry.d.ts +1 -1
- package/es/_internal/icons/RotateClockwise.d.ts +1 -1
- package/es/_internal/icons/RotateCounterclockwise.d.ts +1 -1
- package/es/_internal/icons/Search.d.ts +1 -1
- package/es/_internal/icons/Success.d.ts +1 -1
- package/es/_internal/icons/Switcher.d.ts +1 -1
- package/es/_internal/icons/Time.d.ts +1 -1
- package/es/_internal/icons/To.d.ts +1 -1
- package/es/_internal/icons/Trash.d.ts +1 -1
- package/es/_internal/icons/Warning.d.ts +1 -1
- package/es/_internal/icons/ZoomIn.d.ts +1 -1
- package/es/_internal/icons/ZoomOut.d.ts +1 -1
- package/es/_internal/icons/replaceable.d.ts +1 -1
- package/es/_internal/loading/src/Loading.d.ts +1 -1
- package/es/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +1 -1
- package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -1
- package/es/_internal/select-menu/src/SelectMenu.d.ts +1 -1
- package/es/_internal/select-menu/src/SelectOption.d.ts +1 -1
- package/es/_internal/selection/src/Selection.d.ts +12 -3
- package/es/_internal/selection/src/Selection.js +28 -14
- package/es/_internal/slot-machine/src/SlotMachine.d.ts +1 -1
- package/es/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
- package/es/_internal/suffix/src/Suffix.d.ts +1 -1
- package/es/_internal/wave/src/Wave.d.ts +1 -1
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/_utils/vue/call.d.ts +1 -0
- package/es/_utils/vue/index.d.ts +1 -1
- package/es/_utils/vue/index.js +1 -1
- package/es/_utils/vue/keysOf.d.ts +1 -1
- package/es/_utils/vue/resolve-slot.d.ts +1 -0
- package/es/_utils/vue/resolve-slot.js +7 -0
- package/es/_utils/vue/wrapper.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +1 -1
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/anchor/src/BaseAnchor.d.ts +1 -1
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/avatar/src/Avatar.d.ts +11 -2
- package/es/avatar/src/Avatar.js +12 -4
- package/es/avatar-group/src/AvatarGroup.d.ts +34 -11
- package/es/avatar-group/src/AvatarGroup.js +7 -2
- package/es/avatar-group/src/styles/avatar-group-rtl.cssr.js +3 -2
- package/es/avatar-group/src/styles/avatar-group.cssr.js +4 -3
- package/es/avatar-group/styles/dark.js +3 -1
- package/es/avatar-group/styles/light.d.ts +6 -1
- package/es/avatar-group/styles/light.js +7 -1
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/badge/src/Badge.d.ts +1 -1
- package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/es/button/src/Button.d.ts +2 -2
- package/es/button-group/src/ButtonGroup.d.ts +1 -1
- package/es/calendar/src/Calendar.d.ts +1 -1
- package/es/card/index.d.ts +1 -1
- package/es/card/src/Card.d.ts +7 -7
- package/es/carousel/index.d.ts +1 -0
- package/es/carousel/src/Carousel.d.ts +1 -1
- package/es/carousel/src/CarouselArrow.d.ts +1 -1
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/carousel/src/CarouselItem.d.ts +1 -1
- package/es/carousel/src/utils/index.js +1 -1
- package/es/cascader/src/Cascader.d.ts +2 -2
- package/es/cascader/src/CascaderMenu.d.ts +1 -1
- package/es/cascader/src/CascaderOption.d.ts +1 -1
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -1
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -1
- package/es/checkbox/src/Checkbox.d.ts +1 -1
- package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/es/code/src/Code.d.ts +1 -1
- package/es/collapse/src/Collapse.d.ts +12 -1
- package/es/collapse/src/Collapse.js +3 -2
- package/es/collapse/src/CollapseItem.d.ts +2 -2
- package/es/collapse/src/CollapseItem.js +13 -9
- package/es/collapse/src/CollapseItemContent.d.ts +1 -1
- package/es/collapse/src/styles/index.cssr.js +2 -1
- package/es/collapse/styles/light.d.ts +1 -0
- package/es/collapse/styles/light.js +2 -1
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/color-picker/src/AlphaSlider.d.ts +1 -1
- package/es/color-picker/src/ColorInput.d.ts +1 -1
- package/es/color-picker/src/ColorInputUnit.d.ts +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +1 -1
- package/es/color-picker/src/ColorPickerSwatches.d.ts +1 -1
- package/es/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/es/color-picker/src/ColorPreview.d.ts +1 -1
- package/es/color-picker/src/HueSlider.d.ts +1 -1
- package/es/color-picker/src/Pallete.d.ts +1 -1
- package/es/config-provider/src/ConfigProvider.d.ts +1 -1
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/data-table/index.d.ts +3 -3
- package/es/data-table/index.js +2 -1
- package/es/data-table/src/DataTable.d.ts +627 -2319
- package/es/data-table/src/DataTable.js +14 -54
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +91 -1
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +92 -2
- package/es/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/es/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
- package/es/data-table/src/HeaderButton/ResizeButton.d.ts +15 -0
- package/es/data-table/src/HeaderButton/ResizeButton.js +58 -0
- package/es/data-table/src/HeaderButton/SortButton.d.ts +1 -1
- package/es/data-table/src/MainTable.d.ts +1 -1
- package/es/data-table/src/TableParts/Body.d.ts +92 -1
- package/es/data-table/src/TableParts/Body.js +39 -31
- package/es/data-table/src/TableParts/BodyCheckbox.d.ts +1 -1
- package/es/data-table/src/TableParts/BodyRadio.d.ts +1 -1
- package/es/data-table/src/TableParts/Cell.d.ts +181 -1
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/es/data-table/src/TableParts/Header.d.ts +97 -4
- package/es/data-table/src/TableParts/Header.js +48 -16
- package/es/data-table/src/TableParts/SelectionMenu.d.ts +1 -8
- package/es/data-table/src/TableParts/SelectionMenu.js +12 -13
- package/es/data-table/src/interface.d.ts +2467 -5
- package/es/data-table/src/interface.js +54 -0
- package/es/data-table/src/styles/index.cssr.js +27 -1
- package/es/data-table/src/use-check.d.ts +4 -5
- package/es/data-table/src/use-check.js +17 -14
- package/es/data-table/src/use-expand.d.ts +1 -2
- package/es/data-table/src/use-group-header.d.ts +2 -3
- package/es/data-table/src/use-group-header.js +6 -4
- package/es/data-table/src/use-resizable.d.ts +6 -0
- package/es/data-table/src/use-resizable.js +22 -0
- package/es/data-table/src/use-scroll.d.ts +1 -2
- package/es/data-table/src/use-sorter.d.ts +1 -2
- package/es/data-table/src/use-sorter.js +1 -1
- package/es/data-table/src/use-table-data.d.ts +2 -2
- package/es/data-table/src/use-table-data.js +6 -1
- package/es/data-table/src/utils.d.ts +3 -1
- package/es/data-table/src/utils.js +26 -2
- package/es/data-table/styles/_common.d.ts +2 -0
- package/es/data-table/styles/_common.js +2 -0
- package/es/data-table/styles/dark.js +3 -1
- package/es/data-table/styles/light.d.ts +74 -0
- package/es/data-table/styles/light.js +3 -1
- package/es/date-picker/src/DatePicker.d.ts +1 -1
- package/es/date-picker/src/DatePicker.js +5 -3
- package/es/date-picker/src/panel/date.d.ts +17 -49
- package/es/date-picker/src/panel/date.js +6 -10
- package/es/date-picker/src/panel/daterange.d.ts +1 -1
- package/es/date-picker/src/panel/daterange.js +10 -18
- package/es/date-picker/src/panel/datetime.d.ts +7 -7
- package/es/date-picker/src/panel/datetime.js +6 -9
- package/es/date-picker/src/panel/datetimerange.d.ts +1 -1
- package/es/date-picker/src/panel/datetimerange.js +10 -18
- package/es/date-picker/src/panel/month.d.ts +7 -7
- package/es/date-picker/src/panel/monthrange.d.ts +1 -1
- package/es/date-picker/src/panel/monthrange.js +4 -2
- package/es/date-picker/src/panel/panelHeader.d.ts +2 -2
- package/es/date-picker/src/panel/use-calendar.d.ts +1 -1
- package/es/descriptions/src/Descriptions.d.ts +1 -1
- package/es/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/es/descriptions/src/utils.d.ts +1 -1
- package/es/descriptions/src/utils.js +1 -1
- package/es/dialog/src/Dialog.d.ts +1 -1
- package/es/dialog/src/DialogEnvironment.d.ts +4 -1
- package/es/dialog/src/DialogEnvironment.js +6 -2
- package/es/dialog/src/DialogProvider.d.ts +4 -3
- package/es/discrete/src/InjectionExtractor.d.ts +1 -1
- package/es/discrete/src/discreteApp.d.ts +2 -1
- package/es/discrete/src/discreteApp.js +10 -5
- package/es/discrete/src/interface.d.ts +2 -1
- package/es/divider/src/Divider.d.ts +1 -1
- package/es/drawer/src/Drawer.d.ts +1 -1
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/es/drawer/src/DrawerContent.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +1 -1
- package/es/dropdown/src/Dropdown.js +21 -20
- package/es/dropdown/src/DropdownDivider.d.ts +1 -1
- package/es/dropdown/src/DropdownGroup.d.ts +1 -1
- package/es/dropdown/src/DropdownGroup.js +4 -1
- package/es/dropdown/src/DropdownGroupHeader.d.ts +1 -1
- package/es/dropdown/src/DropdownMenu.d.ts +1 -1
- package/es/dropdown/src/DropdownMenu.js +2 -0
- package/es/dropdown/src/DropdownOption.d.ts +1 -1
- package/es/dropdown/src/DropdownRenderOption.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-input/src/InputPreset.d.ts +1 -1
- package/es/dynamic-input/src/PairPreset.d.ts +1 -1
- package/es/dynamic-tags/index.d.ts +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +2 -2
- package/es/element/src/Element.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/form/src/Form.d.ts +1 -1
- package/es/form/src/FormItem.d.ts +1 -1
- package/es/form/src/FormItemCol.d.ts +1 -1
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/FormItemRow.d.ts +1 -1
- package/es/global-style/src/GlobalStyle.d.ts +1 -1
- package/es/gradient-text/src/GradientText.d.ts +1 -1
- package/es/grid/src/Grid.d.ts +1 -1
- package/es/grid/src/Grid.js +1 -1
- package/es/grid/src/GridItem.d.ts +1 -1
- package/es/icon/src/Icon.d.ts +1 -1
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/image/src/Image.d.ts +1 -1
- package/es/image/src/ImageGroup.d.ts +1 -1
- package/es/image/src/ImagePreview.d.ts +1 -1
- package/es/input/src/Input.d.ts +2 -2
- package/es/input/src/InputGroup.d.ts +1 -1
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input/src/WordCount.d.ts +1 -1
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/input-number/src/InputNumber.js +6 -1
- package/es/layout/index.d.ts +1 -1
- package/es/layout/src/Layout.d.ts +2 -2
- package/es/layout/src/LayoutContent.d.ts +1 -1
- package/es/layout/src/LayoutFooter.d.ts +1 -1
- package/es/layout/src/LayoutHeader.d.ts +1 -1
- package/es/layout/src/LayoutSider.d.ts +1 -1
- package/es/layout/src/ToggleBar.d.ts +1 -1
- package/es/layout/src/ToggleButton.d.ts +1 -1
- package/es/legacy-grid/src/Col.d.ts +1 -1
- package/es/legacy-grid/src/Row.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +1 -1
- package/es/legacy-transfer/src/TransferFilter.d.ts +1 -1
- package/es/legacy-transfer/src/TransferHeader.d.ts +1 -1
- package/es/legacy-transfer/src/TransferList.d.ts +1 -1
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/es/list/src/List.d.ts +1 -1
- package/es/list/src/ListItem.d.ts +1 -1
- package/es/loading-bar/src/LoadingBar.d.ts +8 -3
- package/es/loading-bar/src/LoadingBar.js +5 -2
- package/es/loading-bar/src/LoadingBarProvider.d.ts +8 -5
- package/es/loading-bar/src/LoadingBarProvider.js +6 -6
- package/es/log/src/Log.d.ts +1 -1
- package/es/log/src/LogLine.d.ts +1 -1
- package/es/log/src/LogLoader.d.ts +1 -1
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/menu/src/Menu.d.ts +1 -1
- package/es/menu/src/Menu.js +5 -2
- package/es/menu/src/MenuDivider.d.ts +1 -1
- package/es/menu/src/MenuOption.d.ts +1 -1
- package/es/menu/src/MenuOption.js +1 -4
- package/es/menu/src/MenuOptionContent.d.ts +1 -1
- package/es/menu/src/MenuOptionGroup.d.ts +1 -1
- package/es/menu/src/Submenu.d.ts +1 -1
- package/es/menu/src/interface.d.ts +1 -0
- package/es/menu/src/utils.js +1 -1
- package/es/message/src/Message.d.ts +1 -1
- package/es/message/src/MessageEnvironment.d.ts +1 -1
- package/es/message/src/MessageProvider.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +4 -4
- package/es/modal/src/Modal.d.ts +5 -5
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/notification/src/Notification.d.ts +1 -1
- package/es/notification/src/NotificationContainer.d.ts +1 -1
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +1 -1
- package/es/number-animation/src/NumberAnimation.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +14 -1
- package/es/pagination/src/Pagination.js +5 -5
- package/es/popconfirm/src/Popconfirm.d.ts +1 -1
- package/es/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +1 -1
- package/es/popover/src/Popover.js +5 -0
- package/es/popover/src/PopoverBody.d.ts +1 -1
- package/es/popselect/src/Popselect.d.ts +5 -5
- package/es/popselect/src/PopselectPanel.d.ts +6 -6
- package/es/popselect/src/PopselectPanel.js +2 -2
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/Circle.js +5 -3
- package/es/progress/src/Line.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/radio/src/Radio.d.ts +1 -1
- package/es/radio/src/RadioButton.d.ts +1 -1
- package/es/radio/src/RadioGroup.d.ts +1 -1
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/result/src/Result.d.ts +1 -1
- package/es/scrollbar/src/Scrollbar.d.ts +1 -1
- package/es/select/src/Select.d.ts +19 -6
- package/es/select/src/Select.js +5 -5
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +11 -1
- package/es/slider/src/Slider.js +3 -2
- package/es/slider/src/styles/index.cssr.js +2 -0
- package/es/slider/styles/dark.js +1 -2
- package/es/slider/styles/light.d.ts +1 -0
- package/es/slider/styles/light.js +1 -2
- package/es/space/src/Space.d.ts +1 -1
- package/es/spin/src/Spin.d.ts +1 -1
- package/es/statistic/src/Statistic.d.ts +1 -1
- package/es/steps/src/Step.d.ts +1 -1
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/table/src/Table.d.ts +1 -1
- package/es/table/src/Tbody.d.ts +1 -1
- package/es/table/src/Td.d.ts +1 -1
- package/es/table/src/Th.d.ts +1 -1
- package/es/table/src/Thead.d.ts +1 -1
- package/es/table/src/Tr.d.ts +1 -1
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/TabPane.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +2 -2
- package/es/tabs/src/Tabs.js +28 -0
- package/es/tag/src/Tag.d.ts +14 -14
- package/es/tag/src/Tag.js +14 -13
- package/es/theme-editor/src/MaximizeIcon.d.ts +1 -1
- package/es/theme-editor/src/MinimizeIcon.d.ts +1 -1
- package/es/theme-editor/src/ThemeEditor.d.ts +1 -1
- package/es/thing/src/Thing.d.ts +1 -1
- package/es/time/src/Time.d.ts +1 -1
- package/es/time-picker/src/Panel.d.ts +1 -1
- package/es/time-picker/src/PanelCol.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/timeline/src/Timeline.d.ts +1 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/timeline/src/styles/index.cssr.js +2 -3
- package/es/timeline/styles/_common.js +2 -2
- package/es/tooltip/src/Tooltip.d.ts +1 -1
- package/es/transfer/src/Transfer.d.ts +4 -1
- package/es/transfer/src/Transfer.js +9 -4
- package/es/transfer/src/TransferFilter.d.ts +1 -1
- package/es/transfer/src/TransferHeader.d.ts +1 -1
- package/es/transfer/src/TransferList.d.ts +1 -1
- package/es/transfer/src/TransferListItem.d.ts +1 -1
- package/es/tree/src/MotionWrapper.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +1 -1
- package/es/tree/src/Tree.js +42 -14
- package/es/tree/src/TreeNode.d.ts +1 -1
- package/es/tree/src/TreeNode.js +9 -4
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -1
- package/es/tree/src/TreeNodeContent.d.ts +1 -1
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree/src/interface.d.ts +1 -0
- package/es/tree/src/utils.d.ts +2 -1
- package/es/tree/src/utils.js +3 -0
- package/es/tree-select/src/TreeSelect.d.ts +4 -4
- package/es/tree-select/src/TreeSelect.js +8 -10
- package/es/typography/src/a.d.ts +1 -1
- package/es/typography/src/blockquote.d.ts +1 -1
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/headers.d.ts +6 -6
- package/es/typography/src/hr.d.ts +1 -1
- package/es/typography/src/li.d.ts +1 -1
- package/es/typography/src/ol.d.ts +1 -1
- package/es/typography/src/p.d.ts +1 -1
- package/es/typography/src/text.d.ts +1 -1
- package/es/typography/src/ul.d.ts +1 -1
- package/es/upload/src/Upload.d.ts +14 -11
- package/es/upload/src/Upload.js +8 -3
- package/es/upload/src/UploadDragger.d.ts +1 -1
- package/es/upload/src/UploadFile.d.ts +1 -1
- package/es/upload/src/UploadFileList.d.ts +1 -1
- package/es/upload/src/UploadProgress.d.ts +1 -1
- package/es/upload/src/UploadTrigger.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/lib/_internal/clear/src/Clear.d.ts +1 -1
- package/lib/_internal/close/src/Close.d.ts +10 -1
- package/lib/_internal/close/src/Close.js +7 -2
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +1 -1
- package/lib/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
- package/lib/_internal/icon/src/Icon.d.ts +1 -1
- package/lib/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
- package/lib/_internal/icons/Add.d.ts +1 -1
- package/lib/_internal/icons/ArrowBack.d.ts +1 -1
- package/lib/_internal/icons/ArrowDown.d.ts +1 -1
- package/lib/_internal/icons/ArrowUp.d.ts +1 -1
- package/lib/_internal/icons/Attach.d.ts +1 -1
- package/lib/_internal/icons/Backward.d.ts +1 -1
- package/lib/_internal/icons/Cancel.d.ts +1 -1
- package/lib/_internal/icons/Checkmark.d.ts +1 -1
- package/lib/_internal/icons/ChevronDown.d.ts +1 -1
- package/lib/_internal/icons/ChevronDownFilled.d.ts +1 -1
- package/lib/_internal/icons/ChevronLeft.d.ts +1 -1
- package/lib/_internal/icons/ChevronRight.d.ts +1 -1
- package/lib/_internal/icons/Clear.d.ts +1 -1
- package/lib/_internal/icons/Close.d.ts +1 -1
- package/lib/_internal/icons/Date.d.ts +1 -1
- package/lib/_internal/icons/Download.d.ts +1 -1
- package/lib/_internal/icons/Empty.d.ts +1 -1
- package/lib/_internal/icons/Error.d.ts +1 -1
- package/lib/_internal/icons/Eye.d.ts +1 -1
- package/lib/_internal/icons/EyeOff.d.ts +1 -1
- package/lib/_internal/icons/FastBackward.d.ts +1 -1
- package/lib/_internal/icons/FastForward.d.ts +1 -1
- package/lib/_internal/icons/File.d.ts +1 -1
- package/lib/_internal/icons/Filter.d.ts +1 -1
- package/lib/_internal/icons/Forward.d.ts +1 -1
- package/lib/_internal/icons/Info.d.ts +1 -1
- package/lib/_internal/icons/More.d.ts +1 -1
- package/lib/_internal/icons/Photo.d.ts +1 -1
- package/lib/_internal/icons/Remove.d.ts +1 -1
- package/lib/_internal/icons/ResizeSmall.d.ts +1 -1
- package/lib/_internal/icons/Retry.d.ts +1 -1
- package/lib/_internal/icons/RotateClockwise.d.ts +1 -1
- package/lib/_internal/icons/RotateCounterclockwise.d.ts +1 -1
- package/lib/_internal/icons/Search.d.ts +1 -1
- package/lib/_internal/icons/Success.d.ts +1 -1
- package/lib/_internal/icons/Switcher.d.ts +1 -1
- package/lib/_internal/icons/Time.d.ts +1 -1
- package/lib/_internal/icons/To.d.ts +1 -1
- package/lib/_internal/icons/Trash.d.ts +1 -1
- package/lib/_internal/icons/Warning.d.ts +1 -1
- package/lib/_internal/icons/ZoomIn.d.ts +1 -1
- package/lib/_internal/icons/ZoomOut.d.ts +1 -1
- package/lib/_internal/icons/replaceable.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +1 -1
- package/lib/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +1 -1
- package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -1
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +1 -1
- package/lib/_internal/select-menu/src/SelectOption.d.ts +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +12 -3
- package/lib/_internal/selection/src/Selection.js +28 -14
- package/lib/_internal/slot-machine/src/SlotMachine.d.ts +1 -1
- package/lib/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
- package/lib/_internal/suffix/src/Suffix.d.ts +1 -1
- package/lib/_internal/wave/src/Wave.d.ts +1 -1
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/_utils/vue/call.d.ts +1 -0
- package/lib/_utils/vue/index.d.ts +1 -1
- package/lib/_utils/vue/index.js +2 -1
- package/lib/_utils/vue/keysOf.d.ts +1 -1
- package/lib/_utils/vue/resolve-slot.d.ts +1 -0
- package/lib/_utils/vue/resolve-slot.js +9 -1
- package/lib/_utils/vue/wrapper.d.ts +1 -1
- package/lib/affix/src/Affix.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +1 -1
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/anchor/src/BaseAnchor.d.ts +1 -1
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/avatar/src/Avatar.d.ts +11 -2
- package/lib/avatar/src/Avatar.js +11 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +34 -11
- package/lib/avatar-group/src/AvatarGroup.js +7 -2
- package/lib/avatar-group/src/styles/avatar-group-rtl.cssr.js +3 -2
- package/lib/avatar-group/src/styles/avatar-group.cssr.js +4 -3
- package/lib/avatar-group/styles/dark.js +3 -1
- package/lib/avatar-group/styles/light.d.ts +6 -1
- package/lib/avatar-group/styles/light.js +9 -1
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/badge/src/Badge.d.ts +1 -1
- package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/lib/button/src/Button.d.ts +2 -2
- package/lib/button-group/src/ButtonGroup.d.ts +1 -1
- package/lib/calendar/src/Calendar.d.ts +1 -1
- package/lib/card/index.d.ts +1 -1
- package/lib/card/src/Card.d.ts +7 -7
- package/lib/carousel/index.d.ts +1 -0
- package/lib/carousel/src/Carousel.d.ts +1 -1
- package/lib/carousel/src/CarouselArrow.d.ts +1 -1
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/carousel/src/CarouselItem.d.ts +1 -1
- package/lib/carousel/src/utils/index.js +1 -1
- package/lib/cascader/src/Cascader.d.ts +2 -2
- package/lib/cascader/src/CascaderMenu.d.ts +1 -1
- package/lib/cascader/src/CascaderOption.d.ts +1 -1
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -1
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -1
- package/lib/checkbox/src/Checkbox.d.ts +1 -1
- package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/collapse/src/Collapse.d.ts +12 -1
- package/lib/collapse/src/Collapse.js +3 -2
- package/lib/collapse/src/CollapseItem.d.ts +2 -2
- package/lib/collapse/src/CollapseItem.js +12 -8
- package/lib/collapse/src/CollapseItemContent.d.ts +1 -1
- package/lib/collapse/src/styles/index.cssr.js +2 -1
- package/lib/collapse/styles/light.d.ts +1 -0
- package/lib/collapse/styles/light.js +2 -1
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/color-picker/src/AlphaSlider.d.ts +1 -1
- package/lib/color-picker/src/ColorInput.d.ts +1 -1
- package/lib/color-picker/src/ColorInputUnit.d.ts +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +1 -1
- package/lib/color-picker/src/ColorPickerSwatches.d.ts +1 -1
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/lib/color-picker/src/ColorPreview.d.ts +1 -1
- package/lib/color-picker/src/HueSlider.d.ts +1 -1
- package/lib/color-picker/src/Pallete.d.ts +1 -1
- package/lib/config-provider/src/ConfigProvider.d.ts +1 -1
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/data-table/index.d.ts +3 -3
- package/lib/data-table/index.js +2 -1
- package/lib/data-table/src/DataTable.d.ts +627 -2319
- package/lib/data-table/src/DataTable.js +14 -55
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +91 -1
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +92 -2
- package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/ResizeButton.d.ts +15 -0
- package/lib/data-table/src/HeaderButton/ResizeButton.js +60 -0
- package/lib/data-table/src/HeaderButton/SortButton.d.ts +1 -1
- package/lib/data-table/src/MainTable.d.ts +1 -1
- package/lib/data-table/src/TableParts/Body.d.ts +92 -1
- package/lib/data-table/src/TableParts/Body.js +39 -31
- package/lib/data-table/src/TableParts/BodyCheckbox.d.ts +1 -1
- package/lib/data-table/src/TableParts/BodyRadio.d.ts +1 -1
- package/lib/data-table/src/TableParts/Cell.d.ts +181 -1
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/lib/data-table/src/TableParts/Header.d.ts +97 -4
- package/lib/data-table/src/TableParts/Header.js +46 -14
- package/lib/data-table/src/TableParts/SelectionMenu.d.ts +1 -8
- package/lib/data-table/src/TableParts/SelectionMenu.js +12 -13
- package/lib/data-table/src/interface.d.ts +2467 -5
- package/lib/data-table/src/interface.js +55 -1
- package/lib/data-table/src/styles/index.cssr.js +27 -1
- package/lib/data-table/src/use-check.d.ts +4 -5
- package/lib/data-table/src/use-check.js +17 -14
- package/lib/data-table/src/use-expand.d.ts +1 -2
- package/lib/data-table/src/use-group-header.d.ts +2 -3
- package/lib/data-table/src/use-group-header.js +6 -4
- package/lib/data-table/src/use-resizable.d.ts +6 -0
- package/lib/data-table/src/use-resizable.js +26 -0
- package/lib/data-table/src/use-scroll.d.ts +1 -2
- package/lib/data-table/src/use-sorter.d.ts +1 -2
- package/lib/data-table/src/use-sorter.js +1 -1
- package/lib/data-table/src/use-table-data.d.ts +2 -2
- package/lib/data-table/src/use-table-data.js +6 -1
- package/lib/data-table/src/utils.d.ts +3 -1
- package/lib/data-table/src/utils.js +29 -3
- package/lib/data-table/styles/_common.d.ts +2 -0
- package/lib/data-table/styles/_common.js +2 -0
- package/lib/data-table/styles/dark.js +3 -1
- package/lib/data-table/styles/light.d.ts +74 -0
- package/lib/data-table/styles/light.js +3 -1
- package/lib/date-picker/src/DatePicker.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.js +5 -3
- package/lib/date-picker/src/panel/date.d.ts +17 -49
- package/lib/date-picker/src/panel/date.js +5 -9
- package/lib/date-picker/src/panel/daterange.d.ts +1 -1
- package/lib/date-picker/src/panel/daterange.js +9 -17
- package/lib/date-picker/src/panel/datetime.d.ts +7 -7
- package/lib/date-picker/src/panel/datetime.js +6 -9
- package/lib/date-picker/src/panel/datetimerange.d.ts +1 -1
- package/lib/date-picker/src/panel/datetimerange.js +9 -17
- package/lib/date-picker/src/panel/month.d.ts +7 -7
- package/lib/date-picker/src/panel/monthrange.d.ts +1 -1
- package/lib/date-picker/src/panel/monthrange.js +4 -2
- package/lib/date-picker/src/panel/panelHeader.d.ts +2 -2
- package/lib/date-picker/src/panel/use-calendar.d.ts +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +1 -1
- package/lib/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/lib/descriptions/src/utils.d.ts +1 -1
- package/lib/descriptions/src/utils.js +1 -1
- package/lib/dialog/src/Dialog.d.ts +1 -1
- package/lib/dialog/src/DialogEnvironment.d.ts +4 -1
- package/lib/dialog/src/DialogEnvironment.js +6 -2
- package/lib/dialog/src/DialogProvider.d.ts +4 -3
- package/lib/discrete/src/InjectionExtractor.d.ts +1 -1
- package/lib/discrete/src/discreteApp.d.ts +2 -1
- package/lib/discrete/src/discreteApp.js +9 -4
- package/lib/discrete/src/interface.d.ts +2 -1
- package/lib/divider/src/Divider.d.ts +1 -1
- package/lib/drawer/src/Drawer.d.ts +1 -1
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/lib/drawer/src/DrawerContent.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.js +21 -20
- package/lib/dropdown/src/DropdownDivider.d.ts +1 -1
- package/lib/dropdown/src/DropdownGroup.d.ts +1 -1
- package/lib/dropdown/src/DropdownGroup.js +4 -1
- package/lib/dropdown/src/DropdownGroupHeader.d.ts +1 -1
- package/lib/dropdown/src/DropdownMenu.d.ts +1 -1
- package/lib/dropdown/src/DropdownMenu.js +2 -0
- package/lib/dropdown/src/DropdownOption.d.ts +1 -1
- package/lib/dropdown/src/DropdownRenderOption.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-input/src/InputPreset.d.ts +1 -1
- package/lib/dynamic-input/src/PairPreset.d.ts +1 -1
- package/lib/dynamic-tags/index.d.ts +1 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +2 -2
- package/lib/element/src/Element.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/form/src/Form.d.ts +1 -1
- package/lib/form/src/FormItem.d.ts +1 -1
- package/lib/form/src/FormItemCol.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/FormItemRow.d.ts +1 -1
- package/lib/global-style/src/GlobalStyle.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +1 -1
- package/lib/grid/src/Grid.d.ts +1 -1
- package/lib/grid/src/Grid.js +1 -1
- package/lib/grid/src/GridItem.d.ts +1 -1
- package/lib/icon/src/Icon.d.ts +1 -1
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/image/src/ImageGroup.d.ts +1 -1
- package/lib/image/src/ImagePreview.d.ts +1 -1
- package/lib/input/src/Input.d.ts +2 -2
- package/lib/input/src/InputGroup.d.ts +1 -1
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input/src/WordCount.d.ts +1 -1
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/input-number/src/InputNumber.js +5 -0
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/src/Layout.d.ts +2 -2
- package/lib/layout/src/LayoutContent.d.ts +1 -1
- package/lib/layout/src/LayoutFooter.d.ts +1 -1
- package/lib/layout/src/LayoutHeader.d.ts +1 -1
- package/lib/layout/src/LayoutSider.d.ts +1 -1
- package/lib/layout/src/ToggleBar.d.ts +1 -1
- package/lib/layout/src/ToggleButton.d.ts +1 -1
- package/lib/legacy-grid/src/Col.d.ts +1 -1
- package/lib/legacy-grid/src/Row.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferHeader.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/lib/list/src/List.d.ts +1 -1
- package/lib/list/src/ListItem.d.ts +1 -1
- package/lib/loading-bar/src/LoadingBar.d.ts +8 -3
- package/lib/loading-bar/src/LoadingBar.js +5 -2
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +8 -5
- package/lib/loading-bar/src/LoadingBarProvider.js +6 -6
- package/lib/log/src/Log.d.ts +1 -1
- package/lib/log/src/LogLine.d.ts +1 -1
- package/lib/log/src/LogLoader.d.ts +1 -1
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/menu/src/Menu.d.ts +1 -1
- package/lib/menu/src/Menu.js +4 -1
- package/lib/menu/src/MenuDivider.d.ts +1 -1
- package/lib/menu/src/MenuOption.d.ts +1 -1
- package/lib/menu/src/MenuOption.js +1 -4
- package/lib/menu/src/MenuOptionContent.d.ts +1 -1
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -1
- package/lib/menu/src/Submenu.d.ts +1 -1
- package/lib/menu/src/interface.d.ts +1 -0
- package/lib/menu/src/utils.js +1 -1
- package/lib/message/src/Message.d.ts +1 -1
- package/lib/message/src/MessageEnvironment.d.ts +1 -1
- package/lib/message/src/MessageProvider.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +4 -4
- package/lib/modal/src/Modal.d.ts +5 -5
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/notification/src/Notification.d.ts +1 -1
- package/lib/notification/src/NotificationContainer.d.ts +1 -1
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +1 -1
- package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +14 -1
- package/lib/pagination/src/Pagination.js +4 -4
- package/lib/popconfirm/src/Popconfirm.d.ts +1 -1
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +1 -1
- package/lib/popover/src/Popover.js +5 -0
- package/lib/popover/src/PopoverBody.d.ts +1 -1
- package/lib/popselect/src/Popselect.d.ts +5 -5
- package/lib/popselect/src/PopselectPanel.d.ts +6 -6
- package/lib/popselect/src/PopselectPanel.js +2 -2
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/Circle.js +5 -3
- package/lib/progress/src/Line.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/radio/src/Radio.d.ts +1 -1
- package/lib/radio/src/RadioButton.d.ts +1 -1
- package/lib/radio/src/RadioGroup.d.ts +1 -1
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/scrollbar/src/Scrollbar.d.ts +1 -1
- package/lib/select/src/Select.d.ts +19 -6
- package/lib/select/src/Select.js +5 -5
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +11 -1
- package/lib/slider/src/Slider.js +3 -2
- package/lib/slider/src/styles/index.cssr.js +2 -0
- package/lib/slider/styles/dark.js +1 -2
- package/lib/slider/styles/light.d.ts +1 -0
- package/lib/slider/styles/light.js +1 -2
- package/lib/space/src/Space.d.ts +1 -1
- package/lib/spin/src/Spin.d.ts +1 -1
- package/lib/statistic/src/Statistic.d.ts +1 -1
- package/lib/steps/src/Step.d.ts +1 -1
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/table/src/Tbody.d.ts +1 -1
- package/lib/table/src/Td.d.ts +1 -1
- package/lib/table/src/Th.d.ts +1 -1
- package/lib/table/src/Thead.d.ts +1 -1
- package/lib/table/src/Tr.d.ts +1 -1
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/TabPane.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +2 -2
- package/lib/tabs/src/Tabs.js +28 -0
- package/lib/tag/src/Tag.d.ts +14 -14
- package/lib/tag/src/Tag.js +12 -11
- package/lib/theme-editor/src/MaximizeIcon.d.ts +1 -1
- package/lib/theme-editor/src/MinimizeIcon.d.ts +1 -1
- package/lib/theme-editor/src/ThemeEditor.d.ts +1 -1
- package/lib/thing/src/Thing.d.ts +1 -1
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time-picker/src/Panel.d.ts +1 -1
- package/lib/time-picker/src/PanelCol.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/timeline/src/Timeline.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/timeline/src/styles/index.cssr.js +2 -3
- package/lib/timeline/styles/_common.js +2 -2
- package/lib/tooltip/src/Tooltip.d.ts +1 -1
- package/lib/transfer/src/Transfer.d.ts +4 -1
- package/lib/transfer/src/Transfer.js +9 -4
- package/lib/transfer/src/TransferFilter.d.ts +1 -1
- package/lib/transfer/src/TransferHeader.d.ts +1 -1
- package/lib/transfer/src/TransferList.d.ts +1 -1
- package/lib/transfer/src/TransferListItem.d.ts +1 -1
- package/lib/tree/src/MotionWrapper.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +1 -1
- package/lib/tree/src/Tree.js +41 -13
- package/lib/tree/src/TreeNode.d.ts +1 -1
- package/lib/tree/src/TreeNode.js +9 -4
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -1
- package/lib/tree/src/TreeNodeContent.d.ts +1 -1
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree/src/interface.d.ts +1 -0
- package/lib/tree/src/utils.d.ts +2 -1
- package/lib/tree/src/utils.js +5 -1
- package/lib/tree-select/src/TreeSelect.d.ts +4 -4
- package/lib/tree-select/src/TreeSelect.js +8 -10
- package/lib/typography/src/a.d.ts +1 -1
- package/lib/typography/src/blockquote.d.ts +1 -1
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/headers.d.ts +6 -6
- package/lib/typography/src/hr.d.ts +1 -1
- package/lib/typography/src/li.d.ts +1 -1
- package/lib/typography/src/ol.d.ts +1 -1
- package/lib/typography/src/p.d.ts +1 -1
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/typography/src/ul.d.ts +1 -1
- package/lib/upload/src/Upload.d.ts +14 -11
- package/lib/upload/src/Upload.js +8 -3
- package/lib/upload/src/UploadDragger.d.ts +1 -1
- package/lib/upload/src/UploadFile.d.ts +1 -1
- package/lib/upload/src/UploadFileList.d.ts +1 -1
- package/lib/upload/src/UploadProgress.d.ts +1 -1
- package/lib/upload/src/UploadTrigger.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/package.json +26 -33
- package/web-types.json +10314 -10309
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dataTableInjectionKey = void 0;
|
|
3
|
+
exports.dataTableInjectionKey = exports.dataTableProps = void 0;
|
|
4
|
+
const _mixins_1 = require("../../_mixins");
|
|
4
5
|
const _utils_1 = require("../../_utils");
|
|
6
|
+
exports.dataTableProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { onUnstableColumnResize: Function, pagination: {
|
|
7
|
+
type: [Object, Boolean],
|
|
8
|
+
default: false
|
|
9
|
+
}, paginateSinglePage: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: true
|
|
12
|
+
}, minHeight: [Number, String], maxHeight: [Number, String],
|
|
13
|
+
// Use any type as row data to make prop data acceptable
|
|
14
|
+
columns: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: () => []
|
|
17
|
+
}, rowClassName: [String, Function], rowProps: Function, rowKey: Function, summary: [Function], data: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default: () => []
|
|
20
|
+
}, loading: Boolean, bordered: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: undefined
|
|
23
|
+
}, bottomBordered: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: undefined
|
|
26
|
+
}, striped: Boolean, scrollX: [Number, String], defaultCheckedRowKeys: {
|
|
27
|
+
type: Array,
|
|
28
|
+
default: () => []
|
|
29
|
+
}, checkedRowKeys: Array, singleLine: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: true
|
|
32
|
+
}, singleColumn: Boolean, size: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: 'medium'
|
|
35
|
+
}, remote: Boolean, defaultExpandedRowKeys: {
|
|
36
|
+
type: Array,
|
|
37
|
+
default: []
|
|
38
|
+
}, defaultExpandAll: Boolean, expandedRowKeys: Array, stickyExpandedRows: Boolean, virtualScroll: Boolean, tableLayout: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: 'auto'
|
|
41
|
+
}, allowCheckingNotLoaded: Boolean, cascade: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: true
|
|
44
|
+
}, childrenKey: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: 'children'
|
|
47
|
+
}, indent: {
|
|
48
|
+
type: Number,
|
|
49
|
+
default: 16
|
|
50
|
+
}, flexHeight: Boolean, summaryPlacement: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: 'bottom'
|
|
53
|
+
}, paginationBehaviorOnFilter: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: 'current'
|
|
56
|
+
}, renderCell: Function, renderExpandIcon: Function, onLoad: Function, 'onUpdate:page': [Function, Array], onUpdatePage: [Function, Array], 'onUpdate:pageSize': [Function, Array], onUpdatePageSize: [Function, Array], 'onUpdate:sorter': [Function, Array], onUpdateSorter: [Function, Array], 'onUpdate:filters': [Function, Array], onUpdateFilters: [Function, Array], 'onUpdate:checkedRowKeys': [Function, Array], onUpdateCheckedRowKeys: [Function, Array], 'onUpdate:expandedRowKeys': [Function, Array], onUpdateExpandedRowKeys: [Function, Array], onScroll: Function,
|
|
57
|
+
// deprecated
|
|
58
|
+
onPageChange: [Function, Array], onPageSizeChange: [Function, Array], onSorterChange: [Function, Array], onFiltersChange: [Function, Array], onCheckedRowKeysChange: [Function, Array] });
|
|
5
59
|
exports.dataTableInjectionKey = (0, _utils_1.createInjectionKey)('n-data-table');
|
|
@@ -45,6 +45,8 @@ const fixedColumnStyle = createFixedColumnStyle(); // vars:
|
|
|
45
45
|
// --n-pagination-margin
|
|
46
46
|
// --n-empty-padding
|
|
47
47
|
// --n-sorter-size
|
|
48
|
+
// --n-resizable-container-size
|
|
49
|
+
// --n-resizable-size
|
|
48
50
|
// --n-loading-size
|
|
49
51
|
// --n-loading-color
|
|
50
52
|
// --n-opacity-loading
|
|
@@ -193,7 +195,31 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('data-table', `
|
|
|
193
195
|
transform: 'rotate(-180deg)'
|
|
194
196
|
})]), (0, cssr_1.cM)('asc, desc', {
|
|
195
197
|
color: 'var(--n-th-icon-color-active)'
|
|
196
|
-
})]), (0, cssr_1.cB)('data-table-
|
|
198
|
+
})]), (0, cssr_1.cB)('data-table-resize-button', `
|
|
199
|
+
width: var(--n-resizable-container-size);
|
|
200
|
+
position: absolute;
|
|
201
|
+
top: 0;
|
|
202
|
+
right: calc(var(--n-resizable-container-size) / 2);
|
|
203
|
+
bottom: 0;
|
|
204
|
+
cursor: col-resize;
|
|
205
|
+
user-select: none;
|
|
206
|
+
`, [(0, cssr_1.c)('&::after', `
|
|
207
|
+
width: var(--n-resizable-size);
|
|
208
|
+
height: 50%;
|
|
209
|
+
position: absolute;
|
|
210
|
+
top: 50%;
|
|
211
|
+
left: calc(var(--n-resizable-container-size) / 2);
|
|
212
|
+
bottom: 0;
|
|
213
|
+
background-color: var(--n-merged-border-color);
|
|
214
|
+
transform: translateY(-50%);
|
|
215
|
+
transition: background-color .3s var(--n-bezier);
|
|
216
|
+
z-index: 1;
|
|
217
|
+
content: '';
|
|
218
|
+
`), (0, cssr_1.cM)('active', [(0, cssr_1.c)('&::after', `
|
|
219
|
+
background-color: var(--n-th-icon-color-active);
|
|
220
|
+
`)]), (0, cssr_1.c)('&:hover::after', `
|
|
221
|
+
background-color: var(--n-th-icon-color-active);
|
|
222
|
+
`)]), (0, cssr_1.cB)('data-table-filter', `
|
|
197
223
|
position: absolute;
|
|
198
224
|
z-index: auto;
|
|
199
225
|
right: 0;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import type { DataTableSetupProps } from './
|
|
3
|
-
import type { RowKey, TableSelectionColumn, InternalRowData, TmNode } from './interface';
|
|
2
|
+
import type { DataTableSetupProps, RowKey, RowData, TableSelectionColumn, InternalRowData, TmNode } from './interface';
|
|
4
3
|
import { TreeMate } from 'treemate';
|
|
5
4
|
export declare function useCheck(props: DataTableSetupProps, data: {
|
|
6
5
|
selectionColumnRef: ComputedRef<TableSelectionColumn | null>;
|
|
@@ -13,9 +12,9 @@ export declare function useCheck(props: DataTableSetupProps, data: {
|
|
|
13
12
|
someRowsCheckedRef: ComputedRef<boolean>;
|
|
14
13
|
allRowsCheckedRef: ComputedRef<boolean>;
|
|
15
14
|
headerCheckboxDisabledRef: ComputedRef<boolean>;
|
|
16
|
-
doUpdateCheckedRowKeys: (keys: RowKey[]) => void;
|
|
15
|
+
doUpdateCheckedRowKeys: (keys: RowKey[], row: RowData | undefined, action: 'check' | 'uncheck' | 'checkAll' | 'uncheckAll') => void;
|
|
17
16
|
doCheckAll: (checkWholeTable?: boolean) => void;
|
|
18
17
|
doUncheckAll: (checkWholeTable?: boolean) => void;
|
|
19
|
-
doCheck: (rowKey: RowKey | RowKey[], single
|
|
20
|
-
doUncheck: (rowKey: RowKey | RowKey[]) => void;
|
|
18
|
+
doCheck: (rowKey: RowKey | RowKey[], single: boolean | undefined, rowInfo: RowData) => void;
|
|
19
|
+
doUncheck: (rowKey: RowKey | RowKey[], rowInfo: RowData) => void;
|
|
21
20
|
};
|
|
@@ -59,7 +59,7 @@ function useCheck(props, data) {
|
|
|
59
59
|
const headerCheckboxDisabledRef = (0, vue_1.computed)(() => {
|
|
60
60
|
return paginatedDataRef.value.length === 0;
|
|
61
61
|
});
|
|
62
|
-
function doUpdateCheckedRowKeys(keys) {
|
|
62
|
+
function doUpdateCheckedRowKeys(keys, row, action) {
|
|
63
63
|
const { 'onUpdate:checkedRowKeys': _onUpdateCheckedRowKeys, onUpdateCheckedRowKeys, onCheckedRowKeysChange } = props;
|
|
64
64
|
const rows = [];
|
|
65
65
|
const { value: { getNode } } = treeMateRef;
|
|
@@ -69,33 +69,36 @@ function useCheck(props, data) {
|
|
|
69
69
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
70
70
|
rows.push(row);
|
|
71
71
|
});
|
|
72
|
-
if (_onUpdateCheckedRowKeys)
|
|
73
|
-
(0, _utils_1.call)(_onUpdateCheckedRowKeys, keys, rows);
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
if (_onUpdateCheckedRowKeys) {
|
|
73
|
+
(0, _utils_1.call)(_onUpdateCheckedRowKeys, keys, rows, { row, action });
|
|
74
|
+
}
|
|
75
|
+
if (onUpdateCheckedRowKeys) {
|
|
76
|
+
(0, _utils_1.call)(onUpdateCheckedRowKeys, keys, rows, { row, action });
|
|
77
|
+
}
|
|
78
|
+
if (onCheckedRowKeysChange) {
|
|
79
|
+
(0, _utils_1.call)(onCheckedRowKeysChange, keys, rows, { row, action });
|
|
80
|
+
}
|
|
78
81
|
uncontrolledCheckedRowKeysRef.value = keys;
|
|
79
82
|
}
|
|
80
|
-
function doCheck(rowKey, single = false) {
|
|
83
|
+
function doCheck(rowKey, single = false, rowInfo) {
|
|
81
84
|
if (props.loading)
|
|
82
85
|
return;
|
|
83
86
|
if (single) {
|
|
84
|
-
doUpdateCheckedRowKeys(Array.isArray(rowKey) ? rowKey.slice(0, 1) : [rowKey]);
|
|
87
|
+
doUpdateCheckedRowKeys(Array.isArray(rowKey) ? rowKey.slice(0, 1) : [rowKey], rowInfo, 'check');
|
|
85
88
|
return;
|
|
86
89
|
}
|
|
87
90
|
doUpdateCheckedRowKeys(treeMateRef.value.check(rowKey, mergedCheckedRowKeysRef.value, {
|
|
88
91
|
cascade: props.cascade,
|
|
89
92
|
allowNotLoaded: props.allowCheckingNotLoaded
|
|
90
|
-
}).checkedKeys);
|
|
93
|
+
}).checkedKeys, rowInfo, 'check');
|
|
91
94
|
}
|
|
92
|
-
function doUncheck(rowKey) {
|
|
95
|
+
function doUncheck(rowKey, rowInfo) {
|
|
93
96
|
if (props.loading)
|
|
94
97
|
return;
|
|
95
98
|
doUpdateCheckedRowKeys(treeMateRef.value.uncheck(rowKey, mergedCheckedRowKeysRef.value, {
|
|
96
99
|
cascade: props.cascade,
|
|
97
100
|
allowNotLoaded: props.allowCheckingNotLoaded
|
|
98
|
-
}).checkedKeys);
|
|
101
|
+
}).checkedKeys, rowInfo, 'uncheck');
|
|
99
102
|
}
|
|
100
103
|
function doCheckAll(checkWholeTable = false) {
|
|
101
104
|
const { value: column } = selectionColumnRef;
|
|
@@ -113,7 +116,7 @@ function useCheck(props, data) {
|
|
|
113
116
|
doUpdateCheckedRowKeys(treeMateRef.value.check(rowKeysToCheck, mergedCheckedRowKeysRef.value, {
|
|
114
117
|
cascade: true,
|
|
115
118
|
allowNotLoaded: props.allowCheckingNotLoaded
|
|
116
|
-
}).checkedKeys);
|
|
119
|
+
}).checkedKeys, undefined, 'checkAll');
|
|
117
120
|
}
|
|
118
121
|
function doUncheckAll(checkWholeTable = false) {
|
|
119
122
|
const { value: column } = selectionColumnRef;
|
|
@@ -131,7 +134,7 @@ function useCheck(props, data) {
|
|
|
131
134
|
doUpdateCheckedRowKeys(treeMateRef.value.uncheck(rowKeysToUncheck, mergedCheckedRowKeysRef.value, {
|
|
132
135
|
cascade: true,
|
|
133
136
|
allowNotLoaded: props.allowCheckingNotLoaded
|
|
134
|
-
}).checkedKeys);
|
|
137
|
+
}).checkedKeys, undefined, 'uncheckAll');
|
|
135
138
|
}
|
|
136
139
|
return {
|
|
137
140
|
mergedCheckedRowKeySetRef,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { TreeMate } from 'treemate';
|
|
3
|
-
import type { DataTableSetupProps } from './
|
|
4
|
-
import type { Expandable, InternalRowData, RowKey } from './interface';
|
|
3
|
+
import type { Expandable, InternalRowData, RowKey, DataTableSetupProps } from './interface';
|
|
5
4
|
export declare function useExpand(props: DataTableSetupProps, treeMateRef: Ref<TreeMate<InternalRowData, InternalRowData, InternalRowData>>): {
|
|
6
5
|
stickyExpandedRowsRef: Ref<boolean>;
|
|
7
6
|
mergedExpandedRowKeysRef: import("vue").ComputedRef<import("treemate").Key[]>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComputedRef } from 'vue';
|
|
2
|
-
import type { DataTableSetupProps } from './
|
|
3
|
-
import type { TableExpandColumn, TableSelectionColumn, TableColumn, TableBaseColumn } from './interface';
|
|
2
|
+
import type { TableExpandColumn, TableSelectionColumn, TableColumn, TableBaseColumn, ColumnKey, DataTableSetupProps } from './interface';
|
|
4
3
|
export interface RowItem {
|
|
5
4
|
colSpan: number;
|
|
6
5
|
rowSpan: number;
|
|
@@ -12,7 +11,7 @@ export interface ColItem {
|
|
|
12
11
|
style: CSSProperties;
|
|
13
12
|
column: TableSelectionColumn | TableExpandColumn | TableBaseColumn;
|
|
14
13
|
}
|
|
15
|
-
export declare function useGroupHeader(props: DataTableSetupProps): {
|
|
14
|
+
export declare function useGroupHeader(props: DataTableSetupProps, getResizableWidth: (key: ColumnKey) => number | undefined): {
|
|
16
15
|
rowsRef: ComputedRef<RowItem[][]>;
|
|
17
16
|
colsRef: ComputedRef<ColItem[]>;
|
|
18
17
|
hasEllipsisRef: ComputedRef<boolean>;
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useGroupHeader = void 0;
|
|
4
4
|
const vue_1 = require("vue");
|
|
5
|
+
const _utils_1 = require("../../_utils");
|
|
5
6
|
const utils_1 = require("./utils");
|
|
6
|
-
function getRowsAndCols(columns) {
|
|
7
|
+
function getRowsAndCols(columns, getResizableWidth) {
|
|
7
8
|
const rows = [];
|
|
8
9
|
const cols = [];
|
|
9
10
|
const dataRelatedCols = [];
|
|
@@ -21,9 +22,10 @@ function getRowsAndCols(columns) {
|
|
|
21
22
|
ensureMaxDepth(column.children, currentDepth + 1);
|
|
22
23
|
}
|
|
23
24
|
else {
|
|
25
|
+
const key = 'key' in column ? column.key : undefined;
|
|
24
26
|
cols.push({
|
|
25
27
|
key: (0, utils_1.getColKey)(column),
|
|
26
|
-
style: (0, utils_1.createCustomWidthStyle)(column),
|
|
28
|
+
style: (0, utils_1.createCustomWidthStyle)(column, key !== undefined ? (0, _utils_1.formatLength)(getResizableWidth(key)) : undefined),
|
|
27
29
|
column
|
|
28
30
|
});
|
|
29
31
|
totalRowSpan += 1;
|
|
@@ -94,8 +96,8 @@ function getRowsAndCols(columns) {
|
|
|
94
96
|
dataRelatedCols
|
|
95
97
|
};
|
|
96
98
|
}
|
|
97
|
-
function useGroupHeader(props) {
|
|
98
|
-
const rowsAndCols = (0, vue_1.computed)(() => getRowsAndCols(props.columns));
|
|
99
|
+
function useGroupHeader(props, getResizableWidth) {
|
|
100
|
+
const rowsAndCols = (0, vue_1.computed)(() => getRowsAndCols(props.columns, getResizableWidth));
|
|
99
101
|
return {
|
|
100
102
|
rowsRef: (0, vue_1.computed)(() => rowsAndCols.value.rows),
|
|
101
103
|
colsRef: (0, vue_1.computed)(() => rowsAndCols.value.cols),
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ColumnKey, TableColumn } from './interface';
|
|
2
|
+
export declare function useResizable(): {
|
|
3
|
+
getResizableWidth: (key: ColumnKey) => number | undefined;
|
|
4
|
+
doUpdateResizableWidth: (column: TableColumn, width: number) => void;
|
|
5
|
+
clearResizableWidth: () => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useResizable = void 0;
|
|
4
|
+
const vue_1 = require("vue");
|
|
5
|
+
const utils_1 = require("./utils");
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
7
|
+
function useResizable() {
|
|
8
|
+
const resizableWidthsRef = (0, vue_1.ref)({});
|
|
9
|
+
function getResizableWidth(key) {
|
|
10
|
+
return resizableWidthsRef.value[key];
|
|
11
|
+
}
|
|
12
|
+
function doUpdateResizableWidth(column, width) {
|
|
13
|
+
if ((0, utils_1.isColumnResizable)(column) && 'key' in column) {
|
|
14
|
+
resizableWidthsRef.value[column.key] = width;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function clearResizableWidth() {
|
|
18
|
+
resizableWidthsRef.value = {};
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
getResizableWidth,
|
|
22
|
+
doUpdateResizableWidth,
|
|
23
|
+
clearResizableWidth
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
exports.useResizable = useResizable;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import type { DataTableSetupProps } from './
|
|
3
|
-
import type { ColumnKey, MainTableRef, TableColumn } from './interface';
|
|
2
|
+
import type { ColumnKey, MainTableRef, TableColumn, DataTableSetupProps } from './interface';
|
|
4
3
|
export declare function useScroll(props: DataTableSetupProps, { mainTableInstRef, mergedCurrentPageRef, bodyWidthRef, scrollPartRef }: {
|
|
5
4
|
scrollPartRef: Ref<'head' | 'body'>;
|
|
6
5
|
bodyWidthRef: Ref<null | number>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import type { ColumnKey, InternalRowData, SortOrder, SortState, TmNode, TableBaseColumn, TableExpandColumn, TableSelectionColumn, CompareFn } from './interface';
|
|
3
|
-
import type { DataTableSetupProps } from './DataTable';
|
|
2
|
+
import type { ColumnKey, InternalRowData, SortOrder, SortState, TmNode, TableBaseColumn, TableExpandColumn, TableSelectionColumn, CompareFn, DataTableSetupProps } from './interface';
|
|
4
3
|
export declare function useSorter(props: DataTableSetupProps, { dataRelatedColsRef, filteredDataRef }: {
|
|
5
4
|
dataRelatedColsRef: ComputedRef<Array<TableSelectionColumn | TableBaseColumn | TableExpandColumn>>;
|
|
6
5
|
filteredDataRef: ComputedRef<TmNode[]>;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useSorter = void 0;
|
|
4
4
|
const vue_1 = require("vue");
|
|
5
|
-
const utils_1 = require("./utils");
|
|
6
5
|
const _utils_1 = require("../../_utils");
|
|
6
|
+
const utils_1 = require("./utils");
|
|
7
7
|
function getMultiplePriority(sorter) {
|
|
8
8
|
if (typeof sorter === 'object' && typeof sorter.multiple === 'number') {
|
|
9
9
|
return sorter.multiple;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import type { DataTableSetupProps } from './DataTable';
|
|
3
|
-
import type { ColumnKey, FilterState, TableBaseColumn, TableSelectionColumn, InternalRowData, TmNode, TableExpandColumn, RowKey } from './interface';
|
|
4
2
|
import type { PaginationProps } from '../../pagination/src/Pagination';
|
|
3
|
+
import type { ColumnKey, FilterState, TableBaseColumn, TableSelectionColumn, InternalRowData, TmNode, TableExpandColumn, RowKey, DataTableSetupProps } from './interface';
|
|
5
4
|
export declare function useTableData(props: DataTableSetupProps, { dataRelatedColsRef }: {
|
|
6
5
|
dataRelatedColsRef: ComputedRef<Array<TableSelectionColumn | TableBaseColumn | TableExpandColumn>>;
|
|
7
6
|
}): {
|
|
@@ -26,6 +25,7 @@ export declare function useTableData(props: DataTableSetupProps, { dataRelatedCo
|
|
|
26
25
|
deriveNextSorter: (sortState: import("./interface").SortState | null) => void;
|
|
27
26
|
doUpdatePageSize: (pageSize: number) => void;
|
|
28
27
|
doUpdatePage: (page: number) => void;
|
|
28
|
+
onUnstableColumnResize: (resizedWidth: number, limitedWidth: number, column: TableBaseColumn, getColumnWidth: (key: ColumnKey) => number | undefined) => void;
|
|
29
29
|
filter: (filters: FilterState | null) => void;
|
|
30
30
|
filters: (filters: FilterState | null) => void;
|
|
31
31
|
clearFilter: () => void;
|
|
@@ -4,8 +4,8 @@ exports.useTableData = void 0;
|
|
|
4
4
|
const vue_1 = require("vue");
|
|
5
5
|
const vooks_1 = require("vooks");
|
|
6
6
|
const treemate_1 = require("treemate");
|
|
7
|
-
const utils_1 = require("./utils");
|
|
8
7
|
const _utils_1 = require("../../_utils");
|
|
8
|
+
const utils_1 = require("./utils");
|
|
9
9
|
const use_sorter_1 = require("./use-sorter");
|
|
10
10
|
// useTableData combines filter, sorter and pagination
|
|
11
11
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
@@ -275,6 +275,10 @@ function useTableData(props, { dataRelatedColsRef }) {
|
|
|
275
275
|
(0, _utils_1.call)(onFiltersChange, filters, sourceColumn);
|
|
276
276
|
uncontrolledFilterStateRef.value = filters;
|
|
277
277
|
}
|
|
278
|
+
function onUnstableColumnResize(resizedWidth, limitedWidth, column, getColumnWidth) {
|
|
279
|
+
var _a;
|
|
280
|
+
(_a = props.onUnstableColumnResize) === null || _a === void 0 ? void 0 : _a.call(props, resizedWidth, limitedWidth, column, getColumnWidth);
|
|
281
|
+
}
|
|
278
282
|
function page(page) {
|
|
279
283
|
doUpdatePage(page);
|
|
280
284
|
}
|
|
@@ -313,6 +317,7 @@ function useTableData(props, { dataRelatedColsRef }) {
|
|
|
313
317
|
deriveNextSorter,
|
|
314
318
|
doUpdatePageSize,
|
|
315
319
|
doUpdatePage,
|
|
320
|
+
onUnstableColumnResize,
|
|
316
321
|
// exported methods
|
|
317
322
|
filter,
|
|
318
323
|
filters,
|
|
@@ -7,10 +7,12 @@ export declare function getStringColWidth(col: TableColumn): string | undefined;
|
|
|
7
7
|
export declare function getColKey(col: TableColumn): string | number;
|
|
8
8
|
export declare function createShallowClonedObject<T>(object: T): T;
|
|
9
9
|
export declare function getFlagOfOrder(order: SortOrder): SortOrderFlag;
|
|
10
|
-
export declare function
|
|
10
|
+
export declare function clampValueFollowCSSRules(value: number, min?: number | string, max?: number | string): number;
|
|
11
|
+
export declare function createCustomWidthStyle(column: TableBaseColumn | TableSelectionColumn | TableExpandColumn, resizedWidth?: string): CSSProperties;
|
|
11
12
|
export declare function createRowClassName(row: InternalRowData, index: number, rowClassName?: string | CreateRowClassName): string;
|
|
12
13
|
export declare function shouldUseArrayInSingleMode(column: TableBaseColumn): boolean;
|
|
13
14
|
export declare function isColumnSortable(column: TableColumn): boolean;
|
|
15
|
+
export declare function isColumnResizable(column: TableColumn): boolean;
|
|
14
16
|
export declare function isColumnFilterable(column: TableColumn): boolean;
|
|
15
17
|
export declare function createNextSorter(column: TableBaseColumn, currentSortState: SortState | null): SortState | null;
|
|
16
18
|
export declare function isColumnSorting(column: TableColumn, mergedSortState: SortState[]): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isColumnSorting = exports.createNextSorter = exports.isColumnFilterable = exports.isColumnSortable = exports.shouldUseArrayInSingleMode = exports.createRowClassName = exports.createCustomWidthStyle = exports.getFlagOfOrder = exports.createShallowClonedObject = exports.getColKey = exports.getStringColWidth = exports.getNumberColWidth = exports.EXPAND_COL_WIDTH = exports.SELECTION_COL_WIDTH = void 0;
|
|
3
|
+
exports.isColumnSorting = exports.createNextSorter = exports.isColumnFilterable = exports.isColumnResizable = exports.isColumnSortable = exports.shouldUseArrayInSingleMode = exports.createRowClassName = exports.createCustomWidthStyle = exports.clampValueFollowCSSRules = exports.getFlagOfOrder = exports.createShallowClonedObject = exports.getColKey = exports.getStringColWidth = exports.getNumberColWidth = exports.EXPAND_COL_WIDTH = exports.SELECTION_COL_WIDTH = void 0;
|
|
4
4
|
const seemly_1 = require("seemly");
|
|
5
5
|
const _utils_1 = require("../../_utils");
|
|
6
6
|
exports.SELECTION_COL_WIDTH = 40;
|
|
@@ -59,11 +59,31 @@ function getFlagOfOrder(order) {
|
|
|
59
59
|
return 0;
|
|
60
60
|
}
|
|
61
61
|
exports.getFlagOfOrder = getFlagOfOrder;
|
|
62
|
-
|
|
62
|
+
// priority: min-width > max-width > width
|
|
63
|
+
function clampValueFollowCSSRules(value, min, max) {
|
|
64
|
+
if (max !== undefined) {
|
|
65
|
+
value = Math.min(value, typeof max === 'number' ? max : parseFloat(max));
|
|
66
|
+
}
|
|
67
|
+
if (min !== undefined) {
|
|
68
|
+
value = Math.max(value, typeof min === 'number' ? min : parseFloat(min));
|
|
69
|
+
}
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
exports.clampValueFollowCSSRules = clampValueFollowCSSRules;
|
|
73
|
+
function createCustomWidthStyle(column, resizedWidth) {
|
|
74
|
+
if (resizedWidth !== undefined) {
|
|
75
|
+
return {
|
|
76
|
+
width: resizedWidth,
|
|
77
|
+
minWidth: resizedWidth,
|
|
78
|
+
maxWidth: resizedWidth
|
|
79
|
+
};
|
|
80
|
+
}
|
|
63
81
|
const width = getStringColWidth(column);
|
|
82
|
+
const { minWidth, maxWidth } = column;
|
|
64
83
|
return {
|
|
65
84
|
width,
|
|
66
|
-
minWidth: (0, _utils_1.formatLength)(
|
|
85
|
+
minWidth: (0, _utils_1.formatLength)(minWidth) || width,
|
|
86
|
+
maxWidth: (0, _utils_1.formatLength)(maxWidth)
|
|
67
87
|
};
|
|
68
88
|
}
|
|
69
89
|
exports.createCustomWidthStyle = createCustomWidthStyle;
|
|
@@ -88,6 +108,12 @@ function isColumnSortable(column) {
|
|
|
88
108
|
return !!column.sorter;
|
|
89
109
|
}
|
|
90
110
|
exports.isColumnSortable = isColumnSortable;
|
|
111
|
+
function isColumnResizable(column) {
|
|
112
|
+
if ('children' in column && !!column.children.length)
|
|
113
|
+
return false;
|
|
114
|
+
return !!column.resizable;
|
|
115
|
+
}
|
|
116
|
+
exports.isColumnResizable = isColumnResizable;
|
|
91
117
|
function isColumnFilterable(column) {
|
|
92
118
|
if ('children' in column)
|
|
93
119
|
return false;
|
|
@@ -8,6 +8,7 @@ const styles_5 = require("../../pagination/styles");
|
|
|
8
8
|
const styles_6 = require("../../_internal/scrollbar/styles");
|
|
9
9
|
const styles_7 = require("../../popover/styles");
|
|
10
10
|
const styles_8 = require("../../empty/styles");
|
|
11
|
+
const styles_9 = require("../../dropdown/styles");
|
|
11
12
|
const common_1 = require("../../_styles/common");
|
|
12
13
|
const light_1 = require("./light");
|
|
13
14
|
const dataTableDark = {
|
|
@@ -21,7 +22,8 @@ const dataTableDark = {
|
|
|
21
22
|
Scrollbar: styles_6.scrollbarDark,
|
|
22
23
|
Empty: styles_8.emptyDark,
|
|
23
24
|
Popover: styles_7.popoverDark,
|
|
24
|
-
Ellipsis: styles_1.ellipsisDark
|
|
25
|
+
Ellipsis: styles_1.ellipsisDark,
|
|
26
|
+
Dropdown: styles_9.dropdownDark
|
|
25
27
|
},
|
|
26
28
|
self(vars) {
|
|
27
29
|
const commonSelf = (0, light_1.self)(vars);
|
|
@@ -42,6 +42,8 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
42
42
|
tdPaddingMedium: string;
|
|
43
43
|
tdPaddingLarge: string;
|
|
44
44
|
sorterSize: string;
|
|
45
|
+
resizableContainerSize: string;
|
|
46
|
+
resizableSize: string;
|
|
45
47
|
filterSize: string;
|
|
46
48
|
paginationMargin: string;
|
|
47
49
|
emptyPadding: string;
|
|
@@ -92,6 +94,8 @@ declare const dataTableLight: import("../../_mixins").Theme<"DataTable", {
|
|
|
92
94
|
tdPaddingMedium: string;
|
|
93
95
|
tdPaddingLarge: string;
|
|
94
96
|
sorterSize: string;
|
|
97
|
+
resizableContainerSize: string;
|
|
98
|
+
resizableSize: string;
|
|
95
99
|
filterSize: string;
|
|
96
100
|
paginationMargin: string;
|
|
97
101
|
emptyPadding: string;
|
|
@@ -755,6 +759,76 @@ declare const dataTableLight: import("../../_mixins").Theme<"DataTable", {
|
|
|
755
759
|
}, any>;
|
|
756
760
|
}>;
|
|
757
761
|
}>;
|
|
762
|
+
Dropdown: import("../../_mixins").Theme<"Dropdown", {
|
|
763
|
+
optionHeightSmall: string;
|
|
764
|
+
optionHeightMedium: string;
|
|
765
|
+
optionHeightLarge: string;
|
|
766
|
+
optionHeightHuge: string;
|
|
767
|
+
borderRadius: string;
|
|
768
|
+
fontSizeSmall: string;
|
|
769
|
+
fontSizeMedium: string;
|
|
770
|
+
fontSizeLarge: string;
|
|
771
|
+
fontSizeHuge: string;
|
|
772
|
+
optionTextColor: string;
|
|
773
|
+
optionTextColorHover: string;
|
|
774
|
+
optionTextColorActive: string;
|
|
775
|
+
optionTextColorChildActive: string;
|
|
776
|
+
color: string;
|
|
777
|
+
dividerColor: string;
|
|
778
|
+
suffixColor: string;
|
|
779
|
+
prefixColor: string;
|
|
780
|
+
optionColorHover: string;
|
|
781
|
+
optionColorActive: string;
|
|
782
|
+
groupHeaderTextColor: string;
|
|
783
|
+
optionTextColorInverted: string;
|
|
784
|
+
optionTextColorHoverInverted: string;
|
|
785
|
+
optionTextColorActiveInverted: string;
|
|
786
|
+
optionTextColorChildActiveInverted: string;
|
|
787
|
+
colorInverted: string;
|
|
788
|
+
dividerColorInverted: string;
|
|
789
|
+
suffixColorInverted: string;
|
|
790
|
+
prefixColorInverted: string;
|
|
791
|
+
optionColorHoverInverted: string;
|
|
792
|
+
optionColorActiveInverted: string;
|
|
793
|
+
groupHeaderTextColorInverted: string;
|
|
794
|
+
optionOpacityDisabled: string;
|
|
795
|
+
padding: string;
|
|
796
|
+
optionIconSizeSmall: string;
|
|
797
|
+
optionIconSizeMedium: string;
|
|
798
|
+
optionIconSizeLarge: string;
|
|
799
|
+
optionIconSizeHuge: string;
|
|
800
|
+
optionSuffixWidthSmall: string;
|
|
801
|
+
optionSuffixWidthMedium: string;
|
|
802
|
+
optionSuffixWidthLarge: string;
|
|
803
|
+
optionSuffixWidthHuge: string;
|
|
804
|
+
optionIconSuffixWidthSmall: string;
|
|
805
|
+
optionIconSuffixWidthMedium: string;
|
|
806
|
+
optionIconSuffixWidthLarge: string;
|
|
807
|
+
optionIconSuffixWidthHuge: string;
|
|
808
|
+
optionPrefixWidthSmall: string;
|
|
809
|
+
optionPrefixWidthMedium: string;
|
|
810
|
+
optionPrefixWidthLarge: string;
|
|
811
|
+
optionPrefixWidthHuge: string;
|
|
812
|
+
optionIconPrefixWidthSmall: string;
|
|
813
|
+
optionIconPrefixWidthMedium: string;
|
|
814
|
+
optionIconPrefixWidthLarge: string;
|
|
815
|
+
optionIconPrefixWidthHuge: string;
|
|
816
|
+
}, {
|
|
817
|
+
Popover: import("../../_mixins").Theme<"Popover", {
|
|
818
|
+
fontSize: string;
|
|
819
|
+
borderRadius: string;
|
|
820
|
+
color: string;
|
|
821
|
+
dividerColor: string;
|
|
822
|
+
textColor: string;
|
|
823
|
+
boxShadow: string;
|
|
824
|
+
space: string;
|
|
825
|
+
spaceArrow: string;
|
|
826
|
+
arrowOffset: string;
|
|
827
|
+
arrowOffsetVertical: string;
|
|
828
|
+
arrowHeight: string;
|
|
829
|
+
padding: string;
|
|
830
|
+
}, any>;
|
|
831
|
+
}>;
|
|
758
832
|
}>;
|
|
759
833
|
export default dataTableLight;
|
|
760
834
|
export declare type DataTableTheme = typeof dataTableLight;
|
|
@@ -14,6 +14,7 @@ const styles_5 = require("../../pagination/styles");
|
|
|
14
14
|
const styles_6 = require("../../_internal/scrollbar/styles");
|
|
15
15
|
const styles_7 = require("../../popover/styles");
|
|
16
16
|
const styles_8 = require("../../empty/styles");
|
|
17
|
+
const styles_9 = require("../../dropdown/styles");
|
|
17
18
|
const common_1 = require("../../_styles/common");
|
|
18
19
|
const _mixins_1 = require("../../_mixins");
|
|
19
20
|
const self = (vars) => {
|
|
@@ -42,7 +43,8 @@ const dataTableLight = (0, _mixins_1.createTheme)({
|
|
|
42
43
|
Scrollbar: styles_6.scrollbarLight,
|
|
43
44
|
Empty: styles_8.emptyLight,
|
|
44
45
|
Popover: styles_7.popoverLight,
|
|
45
|
-
Ellipsis: styles_1.ellipsisLight
|
|
46
|
+
Ellipsis: styles_1.ellipsisLight,
|
|
47
|
+
Dropdown: styles_9.dropdownLight
|
|
46
48
|
},
|
|
47
49
|
self: exports.self
|
|
48
50
|
});
|
|
@@ -5076,7 +5076,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5076
5076
|
onRender: (() => void) | undefined;
|
|
5077
5077
|
focus: () => void;
|
|
5078
5078
|
blur: () => void;
|
|
5079
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
5079
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
5080
5080
|
readonly to: {
|
|
5081
5081
|
type: PropType<string | boolean | HTMLElement>;
|
|
5082
5082
|
default: undefined;
|
|
@@ -625,7 +625,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
625
625
|
};
|
|
626
626
|
});
|
|
627
627
|
const themeClassHandle = inlineThemeDisabled
|
|
628
|
-
? (0, _mixins_1.useThemeClass)('date-picker',
|
|
628
|
+
? (0, _mixins_1.useThemeClass)('date-picker', (0, vue_1.computed)(() => {
|
|
629
|
+
return props.type;
|
|
630
|
+
}), cssVarsRef, props)
|
|
629
631
|
: undefined;
|
|
630
632
|
return Object.assign(Object.assign({}, exposedMethods), { mergedStatus: mergedStatusRef, mergedClsPrefix: mergedClsPrefixRef, mergedBordered: mergedBorderedRef, namespace: namespaceRef, uncontrolledValue: uncontrolledValueRef, pendingValue: pendingValueRef, panelInstRef,
|
|
631
633
|
triggerElRef,
|
|
@@ -668,9 +670,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
668
670
|
};
|
|
669
671
|
const renderPanel = () => {
|
|
670
672
|
const { type } = this;
|
|
671
|
-
return type === 'datetime' ? ((0, vue_1.h)(datetime_1.default, Object.assign({}, commonPanelProps))) : type === 'daterange' ? ((0, vue_1.h)(daterange_1.default, Object.assign({}, commonPanelProps, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }))) : type === 'datetimerange' ? ((0, vue_1.h)(datetimerange_1.default, Object.assign({}, commonPanelProps, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }))) : type === 'month' || type === 'year' || type === 'quarter' ? ((0, vue_1.h)(month_1.default, Object.assign({}, commonPanelProps, { type: type, key: type }))) : type === 'monthrange' ||
|
|
673
|
+
return type === 'datetime' ? ((0, vue_1.h)(datetime_1.default, Object.assign({}, commonPanelProps), $slots)) : type === 'daterange' ? ((0, vue_1.h)(daterange_1.default, Object.assign({}, commonPanelProps, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }), $slots)) : type === 'datetimerange' ? ((0, vue_1.h)(datetimerange_1.default, Object.assign({}, commonPanelProps, { defaultCalendarStartTime: this.defaultCalendarStartTime, defaultCalendarEndTime: this.defaultCalendarEndTime, bindCalendarMonths: this.bindCalendarMonths }), $slots)) : type === 'month' || type === 'year' || type === 'quarter' ? ((0, vue_1.h)(month_1.default, Object.assign({}, commonPanelProps, { type: type, key: type }))) : type === 'monthrange' ||
|
|
672
674
|
type === 'yearrange' ||
|
|
673
|
-
type === 'quarterrange' ? ((0, vue_1.h)(monthrange_1.default, Object.assign({}, commonPanelProps, { type: type }))) : ((0, vue_1.h)(date_1.default, Object.assign({}, commonPanelProps)));
|
|
675
|
+
type === 'quarterrange' ? ((0, vue_1.h)(monthrange_1.default, Object.assign({}, commonPanelProps, { type: type }))) : ((0, vue_1.h)(date_1.default, Object.assign({}, commonPanelProps), $slots));
|
|
674
676
|
};
|
|
675
677
|
if (this.panel) {
|
|
676
678
|
return renderPanel();
|