naive-ui 2.32.0 → 2.32.2
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.zh-CN.md +1 -1
- package/dist/index.js +46388 -42920
- package/dist/index.prod.js +2 -2
- package/es/_internal/scrollbar/src/Scrollbar.js +2 -1
- package/es/_internal/select-menu/styles/light.js +1 -1
- package/es/_internal/selection/src/Selection.js +1 -1
- package/es/_utils/cssr/index.js +4 -4
- package/es/alert/src/Alert.d.ts +14 -0
- package/es/alert/src/Alert.js +11 -2
- package/es/alert/src/styles/index.cssr.js +11 -2
- package/es/alert/styles/dark.js +5 -1
- package/es/anchor/styles/light.js +2 -1
- package/es/auto-complete/src/AutoComplete.d.ts +14 -1
- package/es/auto-complete/src/AutoComplete.js +22 -16
- package/es/auto-complete/styles/light.d.ts +1 -0
- package/es/breadcrumb/styles/light.js +1 -1
- package/es/button/styles/light.js +5 -1
- package/es/card/styles/light.js +1 -1
- package/es/carousel/src/Carousel.js +7 -5
- package/es/cascader/src/Cascader.d.ts +13 -0
- package/es/cascader/src/Cascader.js +12 -4
- package/es/checkbox/src/CheckboxGroup.js +2 -2
- package/es/checkbox/styles/light.js +1 -1
- package/es/collapse/src/Collapse.d.ts +22 -0
- package/es/collapse/src/Collapse.js +4 -2
- package/es/collapse/src/CollapseItem.d.ts +6 -1
- package/es/collapse/src/CollapseItem.js +4 -2
- package/es/collapse/src/styles/index.cssr.js +10 -21
- package/es/collapse/styles/light.d.ts +2 -0
- package/es/collapse/styles/light.js +5 -3
- package/es/color-picker/src/ColorInputUnit.d.ts +1 -0
- package/es/color-picker/src/ColorPicker.d.ts +9 -0
- package/es/color-picker/src/ColorPicker.js +3 -2
- package/es/color-picker/styles/light.d.ts +1 -0
- package/es/countdown/src/Countdown.js +1 -1
- package/es/data-table/src/DataTable.d.ts +18 -0
- package/es/data-table/src/DataTable.js +6 -3
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +4 -2
- package/es/data-table/src/TableParts/Body.d.ts +6 -0
- package/es/data-table/src/TableParts/Body.js +22 -14
- package/es/data-table/src/TableParts/Cell.d.ts +4 -0
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +7 -1
- package/es/data-table/src/TableParts/ExpandTrigger.js +15 -9
- package/es/data-table/src/TableParts/Header.d.ts +3 -1
- package/es/data-table/src/interface.d.ts +6 -3
- package/es/data-table/src/styles/index.cssr.js +25 -7
- package/es/data-table/src/use-expand.d.ts +3 -1
- package/es/data-table/src/use-expand.js +15 -8
- package/es/data-table/src/use-group-header.js +1 -1
- package/es/data-table/src/use-sorter.js +1 -1
- package/es/data-table/src/use-table-data.js +1 -1
- package/es/data-table/styles/light.d.ts +1 -0
- package/es/date-picker/src/DatePicker.d.ts +23 -2
- package/es/date-picker/src/DatePicker.js +4 -4
- package/es/date-picker/src/panel/date.d.ts +6 -3
- package/es/date-picker/src/panel/daterange.d.ts +3 -0
- package/es/date-picker/src/panel/datetime.d.ts +3 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +3 -0
- package/es/date-picker/src/panel/month.d.ts +3 -0
- package/es/date-picker/src/panel/monthrange.d.ts +3 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +6 -0
- package/es/date-picker/src/panel/panelHeader.js +3 -1
- package/es/date-picker/src/panel/use-calendar.d.ts +3 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +3 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +3 -0
- package/es/date-picker/src/styles/index.cssr.js +6 -6
- package/es/date-picker/styles/light.d.ts +2 -0
- package/es/descriptions/styles/light.js +1 -1
- package/es/drawer/src/Drawer.d.ts +8 -8
- package/es/drawer/src/Drawer.js +3 -3
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -0
- package/es/drawer/src/DrawerBodyWrapper.js +6 -0
- package/es/drawer/src/styles/rtl.cssr.d.ts +2 -0
- package/es/drawer/src/styles/rtl.cssr.js +8 -0
- package/es/drawer/styles/index.d.ts +1 -0
- package/es/drawer/styles/index.js +1 -0
- package/es/drawer/styles/rtl.d.ts +3 -0
- package/es/drawer/styles/rtl.js +8 -0
- package/es/dropdown/src/Dropdown.js +6 -6
- package/es/dropdown/src/styles/index.cssr.js +35 -33
- package/es/dynamic-input/src/DynamicInput.d.ts +10 -0
- package/es/dynamic-input/src/InputPreset.d.ts +1 -0
- package/es/dynamic-input/src/PairPreset.d.ts +1 -0
- package/es/dynamic-input/styles/light.d.ts +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/es/dynamic-tags/styles/light.d.ts +1 -0
- package/es/empty/styles/light.js +1 -1
- package/es/grid/src/Grid.d.ts +5 -0
- package/es/grid/src/Grid.js +18 -0
- package/es/grid/src/GridItem.d.ts +2 -0
- package/es/grid/src/GridItem.js +15 -2
- package/es/input/src/Input.d.ts +21 -1
- package/es/input/src/Input.js +23 -6
- package/es/input/src/InputGroupLabel.d.ts +9 -0
- package/es/input/src/styles/input.cssr.d.ts +1 -0
- package/es/input/src/styles/input.cssr.js +12 -4
- package/es/input/styles/dark.js +1 -1
- package/es/input/styles/light.d.ts +1 -0
- package/es/input/styles/light.js +1 -1
- package/es/input-number/src/InputNumber.d.ts +15 -5
- package/es/input-number/src/InputNumber.js +6 -8
- package/es/input-number/src/interface.d.ts +1 -0
- package/es/input-number/styles/light.d.ts +1 -0
- package/es/layout/src/Layout.js +3 -1
- package/es/legacy-grid/src/Row.js +2 -2
- package/es/legacy-transfer/src/Transfer.d.ts +10 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/es/legacy-transfer/src/TransferList.d.ts +1 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/es/legacy-transfer/styles/light.d.ts +1 -0
- package/es/list/src/List.d.ts +47 -3
- package/es/list/src/List.js +17 -7
- package/es/list/src/ListItem.d.ts +1 -0
- package/es/list/src/ListItem.js +3 -1
- package/es/list/src/styles/index.cssr.js +35 -12
- package/es/list/src/styles/rtl.cssr.d.ts +2 -0
- package/es/list/src/styles/rtl.cssr.js +11 -0
- package/es/list/styles/index.d.ts +1 -0
- package/es/list/styles/index.js +1 -0
- package/es/list/styles/light.d.ts +3 -0
- package/es/list/styles/light.js +4 -1
- package/es/list/styles/rtl.d.ts +2 -0
- package/es/list/styles/rtl.js +5 -0
- package/es/locales/common/viVN.js +7 -9
- package/es/mention/src/Mention.d.ts +10 -0
- package/es/mention/styles/light.d.ts +1 -0
- package/es/menu/src/Menu.d.ts +13 -0
- package/es/menu/src/Menu.js +4 -1
- package/es/menu/src/Submenu.js +1 -1
- package/es/menu/src/utils.d.ts +1 -1
- package/es/menu/src/utils.js +5 -1
- package/es/message/src/Message.d.ts +1 -0
- package/es/message/src/Message.js +8 -3
- package/es/message/src/styles/rtl.cssr.d.ts +2 -0
- package/es/message/src/styles/rtl.cssr.js +8 -0
- package/es/message/styles/index.d.ts +1 -0
- package/es/message/styles/index.js +1 -0
- package/es/message/styles/light.js +4 -1
- package/es/message/styles/rtl.d.ts +2 -0
- package/es/message/styles/rtl.js +5 -0
- package/es/modal/src/Modal.js +2 -1
- package/es/notification/styles/light.js +3 -1
- package/es/number-animation/src/NumberAnimation.js +1 -1
- package/es/pagination/src/Pagination.d.ts +31 -26
- package/es/pagination/src/Pagination.js +207 -164
- package/es/pagination/src/styles/index.cssr.js +7 -1
- package/es/pagination/styles/light.d.ts +1 -0
- package/es/popover/src/Popover.js +2 -2
- package/es/popover/src/PopoverBody.js +3 -2
- package/es/popselect/src/Popselect.d.ts +3 -3
- package/es/radio/styles/dark.js +1 -1
- package/es/radio/styles/light.js +1 -1
- package/es/select/index.d.ts +1 -1
- package/es/select/src/Select.d.ts +4 -1
- package/es/select/src/Select.js +4 -4
- package/es/skeleton/src/Skeleton.js +1 -1
- package/es/slider/styles/dark.js +2 -1
- package/es/slider/styles/light.js +2 -1
- package/es/statistic/src/Statistic.d.ts +10 -0
- package/es/statistic/src/Statistic.js +2 -1
- package/es/statistic/src/styles/index.cssr.js +4 -3
- package/es/statistic/styles/light.d.ts +1 -0
- package/es/statistic/styles/light.js +1 -0
- package/es/steps/src/Steps.d.ts +1 -0
- package/es/steps/src/Steps.js +6 -3
- package/es/steps/src/styles/rtl.cssr.d.ts +2 -0
- package/es/steps/src/styles/rtl.cssr.js +14 -0
- package/es/steps/styles/index.d.ts +1 -0
- package/es/steps/styles/index.js +1 -0
- package/es/steps/styles/rtl.d.ts +2 -0
- package/es/steps/styles/rtl.js +5 -0
- package/es/styles.d.ts +4 -3
- package/es/styles.js +4 -3
- package/es/switch/src/Switch.js +32 -5
- package/es/switch/src/styles/index.cssr.js +2 -2
- package/es/tag/src/Tag.d.ts +4 -4
- package/es/tag/src/Tag.js +3 -3
- package/es/tag/src/styles/index.cssr.js +0 -1
- package/es/tag/styles/light.js +4 -1
- package/es/thing/src/Thing.d.ts +19 -21
- package/es/thing/src/Thing.js +4 -7
- package/es/time-picker/src/Panel.d.ts +1 -0
- package/es/time-picker/src/TimePicker.d.ts +12 -2
- package/es/time-picker/src/TimePicker.js +4 -4
- package/es/time-picker/src/styles/index.cssr.js +12 -12
- package/es/time-picker/styles/light.d.ts +1 -0
- package/es/timeline/src/TimelineItem.js +1 -1
- package/es/tooltip/styles/dark.js +1 -1
- package/es/tooltip/styles/light.js +1 -1
- package/es/transfer/src/Transfer.d.ts +37 -6
- package/es/transfer/src/Transfer.js +32 -23
- package/es/transfer/src/TransferFilter.d.ts +1 -0
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferList.js +1 -1
- package/es/transfer/src/TransferListItem.d.ts +1 -0
- package/es/transfer/src/interface.d.ts +1 -1
- package/es/transfer/src/use-transfer-data.d.ts +11 -4
- package/es/transfer/src/use-transfer-data.js +59 -16
- package/es/transfer/styles/light.d.ts +1 -0
- package/es/tree/index.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +34 -1
- package/es/tree/src/Tree.js +25 -11
- package/es/tree/src/interface.d.ts +5 -0
- package/es/tree/src/keyboard.d.ts +4 -1
- package/es/tree/src/keyboard.js +3 -1
- package/es/tree-select/src/TreeSelect.d.ts +13 -0
- package/es/tree-select/src/TreeSelect.js +4 -4
- package/es/typography/styles/light.js +1 -1
- package/es/upload/src/Upload.d.ts +10 -0
- package/es/upload/src/Upload.js +1 -1
- package/es/upload/src/UploadFile.js +4 -2
- package/es/upload/src/utils.d.ts +1 -0
- package/es/upload/src/utils.js +12 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.js +2 -1
- package/lib/_internal/select-menu/styles/light.js +1 -1
- package/lib/_internal/selection/src/Selection.js +1 -1
- package/lib/_utils/cssr/index.js +2 -2
- package/lib/alert/src/Alert.d.ts +14 -0
- package/lib/alert/src/Alert.js +11 -2
- package/lib/alert/src/styles/index.cssr.js +11 -2
- package/lib/alert/styles/dark.js +5 -1
- package/lib/anchor/styles/light.js +2 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +14 -1
- package/lib/auto-complete/src/AutoComplete.js +22 -16
- package/lib/auto-complete/styles/light.d.ts +1 -0
- package/lib/breadcrumb/styles/light.js +1 -1
- package/lib/button/styles/light.js +5 -1
- package/lib/card/styles/light.js +1 -1
- package/lib/carousel/src/Carousel.js +7 -5
- package/lib/cascader/src/Cascader.d.ts +13 -0
- package/lib/cascader/src/Cascader.js +11 -3
- package/lib/checkbox/src/CheckboxGroup.js +2 -2
- package/lib/checkbox/styles/light.js +1 -1
- package/lib/collapse/src/Collapse.d.ts +22 -0
- package/lib/collapse/src/Collapse.js +4 -2
- package/lib/collapse/src/CollapseItem.d.ts +6 -1
- package/lib/collapse/src/CollapseItem.js +4 -2
- package/lib/collapse/src/styles/index.cssr.js +10 -21
- package/lib/collapse/styles/light.d.ts +2 -0
- package/lib/collapse/styles/light.js +5 -3
- package/lib/color-picker/src/ColorInputUnit.d.ts +1 -0
- package/lib/color-picker/src/ColorPicker.d.ts +9 -0
- package/lib/color-picker/src/ColorPicker.js +2 -1
- package/lib/color-picker/styles/light.d.ts +1 -0
- package/lib/countdown/src/Countdown.js +1 -1
- package/lib/data-table/src/DataTable.d.ts +18 -0
- package/lib/data-table/src/DataTable.js +6 -3
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +4 -2
- package/lib/data-table/src/TableParts/Body.d.ts +6 -0
- package/lib/data-table/src/TableParts/Body.js +22 -14
- package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +7 -1
- package/lib/data-table/src/TableParts/ExpandTrigger.js +15 -9
- package/lib/data-table/src/TableParts/Header.d.ts +3 -1
- package/lib/data-table/src/interface.d.ts +6 -3
- package/lib/data-table/src/styles/index.cssr.js +25 -7
- package/lib/data-table/src/use-expand.d.ts +3 -1
- package/lib/data-table/src/use-expand.js +15 -8
- package/lib/data-table/src/use-group-header.js +1 -1
- package/lib/data-table/src/use-sorter.js +1 -1
- package/lib/data-table/src/use-table-data.js +1 -1
- package/lib/data-table/styles/light.d.ts +1 -0
- package/lib/date-picker/src/DatePicker.d.ts +23 -2
- package/lib/date-picker/src/DatePicker.js +3 -3
- package/lib/date-picker/src/panel/date.d.ts +6 -3
- package/lib/date-picker/src/panel/daterange.d.ts +3 -0
- package/lib/date-picker/src/panel/datetime.d.ts +3 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +3 -0
- package/lib/date-picker/src/panel/month.d.ts +3 -0
- package/lib/date-picker/src/panel/monthrange.d.ts +3 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +6 -0
- package/lib/date-picker/src/panel/panelHeader.js +3 -1
- package/lib/date-picker/src/panel/use-calendar.d.ts +3 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +3 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +3 -0
- package/lib/date-picker/src/styles/index.cssr.js +6 -6
- package/lib/date-picker/styles/light.d.ts +2 -0
- package/lib/descriptions/styles/light.js +1 -1
- package/lib/drawer/src/Drawer.d.ts +8 -8
- package/lib/drawer/src/Drawer.js +3 -3
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -0
- package/lib/drawer/src/DrawerBodyWrapper.js +6 -0
- package/lib/drawer/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/drawer/src/styles/rtl.cssr.js +15 -0
- package/lib/drawer/styles/index.d.ts +1 -0
- package/lib/drawer/styles/index.js +3 -1
- package/lib/drawer/styles/rtl.d.ts +3 -0
- package/lib/drawer/styles/rtl.js +14 -0
- package/lib/dropdown/src/Dropdown.js +6 -6
- package/lib/dropdown/src/styles/index.cssr.js +35 -33
- package/lib/dynamic-input/src/DynamicInput.d.ts +10 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +1 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +1 -0
- package/lib/dynamic-input/styles/light.d.ts +1 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +10 -0
- package/lib/dynamic-tags/styles/light.d.ts +1 -0
- package/lib/empty/styles/light.js +1 -1
- package/lib/grid/src/Grid.d.ts +5 -0
- package/lib/grid/src/Grid.js +18 -0
- package/lib/grid/src/GridItem.d.ts +2 -0
- package/lib/grid/src/GridItem.js +14 -1
- package/lib/input/src/Input.d.ts +21 -1
- package/lib/input/src/Input.js +45 -5
- package/lib/input/src/InputGroupLabel.d.ts +9 -0
- package/lib/input/src/styles/input.cssr.d.ts +1 -0
- package/lib/input/src/styles/input.cssr.js +13 -4
- package/lib/input/styles/dark.js +1 -1
- package/lib/input/styles/light.d.ts +1 -0
- package/lib/input/styles/light.js +1 -1
- package/lib/input-number/src/InputNumber.d.ts +15 -5
- package/lib/input-number/src/InputNumber.js +6 -8
- package/lib/input-number/src/interface.d.ts +1 -0
- package/lib/input-number/styles/light.d.ts +1 -0
- package/lib/layout/src/Layout.js +3 -1
- package/lib/legacy-grid/src/Row.js +2 -2
- package/lib/legacy-transfer/src/Transfer.d.ts +10 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/lib/legacy-transfer/styles/light.d.ts +1 -0
- package/lib/list/src/List.d.ts +47 -3
- package/lib/list/src/List.js +15 -5
- package/lib/list/src/ListItem.d.ts +1 -0
- package/lib/list/src/ListItem.js +3 -1
- package/lib/list/src/styles/index.cssr.js +35 -12
- package/lib/list/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/list/src/styles/rtl.cssr.js +18 -0
- package/lib/list/styles/index.d.ts +1 -0
- package/lib/list/styles/index.js +3 -1
- package/lib/list/styles/light.d.ts +3 -0
- package/lib/list/styles/light.js +4 -1
- package/lib/list/styles/rtl.d.ts +2 -0
- package/lib/list/styles/rtl.js +11 -0
- package/lib/locales/common/viVN.js +7 -9
- package/lib/mention/src/Mention.d.ts +10 -0
- package/lib/mention/styles/light.d.ts +1 -0
- package/lib/menu/src/Menu.d.ts +13 -0
- package/lib/menu/src/Menu.js +4 -1
- package/lib/menu/src/Submenu.js +1 -1
- package/lib/menu/src/utils.d.ts +1 -1
- package/lib/menu/src/utils.js +5 -1
- package/lib/message/src/Message.d.ts +1 -0
- package/lib/message/src/Message.js +7 -2
- package/lib/message/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/message/src/styles/rtl.cssr.js +15 -0
- package/lib/message/styles/index.d.ts +1 -0
- package/lib/message/styles/index.js +3 -1
- package/lib/message/styles/light.js +4 -1
- package/lib/message/styles/rtl.d.ts +2 -0
- package/lib/message/styles/rtl.js +11 -0
- package/lib/modal/src/Modal.js +2 -1
- package/lib/notification/styles/light.js +3 -1
- package/lib/number-animation/src/NumberAnimation.js +1 -1
- package/lib/pagination/src/Pagination.d.ts +31 -26
- package/lib/pagination/src/Pagination.js +206 -163
- package/lib/pagination/src/styles/index.cssr.js +7 -1
- package/lib/pagination/styles/light.d.ts +1 -0
- package/lib/popover/src/Popover.js +2 -2
- package/lib/popover/src/PopoverBody.js +3 -2
- package/lib/popselect/src/Popselect.d.ts +3 -3
- package/lib/radio/styles/dark.js +1 -1
- package/lib/radio/styles/light.js +1 -1
- package/lib/select/index.d.ts +1 -1
- package/lib/select/src/Select.d.ts +4 -1
- package/lib/select/src/Select.js +3 -3
- package/lib/skeleton/src/Skeleton.js +1 -1
- package/lib/slider/styles/dark.js +2 -1
- package/lib/slider/styles/light.js +2 -1
- package/lib/statistic/src/Statistic.d.ts +10 -0
- package/lib/statistic/src/Statistic.js +2 -1
- package/lib/statistic/src/styles/index.cssr.js +4 -3
- package/lib/statistic/styles/light.d.ts +1 -0
- package/lib/statistic/styles/light.js +1 -0
- package/lib/steps/src/Steps.d.ts +1 -0
- package/lib/steps/src/Steps.js +5 -2
- package/lib/steps/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/steps/src/styles/rtl.cssr.js +21 -0
- package/lib/steps/styles/index.d.ts +1 -0
- package/lib/steps/styles/index.js +3 -1
- package/lib/steps/styles/rtl.d.ts +2 -0
- package/lib/steps/styles/rtl.js +11 -0
- package/lib/styles.d.ts +4 -3
- package/lib/styles.js +154 -149
- package/lib/switch/src/Switch.js +32 -5
- package/lib/switch/src/styles/index.cssr.js +2 -2
- package/lib/tag/src/Tag.d.ts +4 -4
- package/lib/tag/src/Tag.js +3 -3
- package/lib/tag/src/styles/index.cssr.js +0 -1
- package/lib/tag/styles/light.js +4 -1
- package/lib/thing/src/Thing.d.ts +19 -21
- package/lib/thing/src/Thing.js +4 -7
- package/lib/time-picker/src/Panel.d.ts +1 -0
- package/lib/time-picker/src/TimePicker.d.ts +12 -2
- package/lib/time-picker/src/TimePicker.js +3 -3
- package/lib/time-picker/src/styles/index.cssr.js +12 -12
- package/lib/time-picker/styles/light.d.ts +1 -0
- package/lib/timeline/src/TimelineItem.js +1 -1
- package/lib/tooltip/styles/dark.js +1 -1
- package/lib/tooltip/styles/light.js +1 -1
- package/lib/transfer/src/Transfer.d.ts +37 -6
- package/lib/transfer/src/Transfer.js +32 -23
- package/lib/transfer/src/TransferFilter.d.ts +1 -0
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferList.js +1 -1
- package/lib/transfer/src/TransferListItem.d.ts +1 -0
- package/lib/transfer/src/interface.d.ts +1 -1
- package/lib/transfer/src/use-transfer-data.d.ts +11 -4
- package/lib/transfer/src/use-transfer-data.js +59 -16
- package/lib/transfer/styles/light.d.ts +1 -0
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +34 -1
- package/lib/tree/src/Tree.js +25 -11
- package/lib/tree/src/interface.d.ts +5 -0
- package/lib/tree/src/keyboard.d.ts +4 -1
- package/lib/tree/src/keyboard.js +3 -1
- package/lib/tree-select/src/TreeSelect.d.ts +13 -0
- package/lib/tree-select/src/TreeSelect.js +3 -3
- package/lib/typography/styles/light.js +1 -1
- package/lib/upload/src/Upload.d.ts +10 -0
- package/lib/upload/src/Upload.js +1 -1
- package/lib/upload/src/UploadFile.js +3 -1
- package/lib/upload/src/utils.d.ts +1 -0
- package/lib/upload/src/utils.js +14 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +25 -19
- package/volar.d.ts +1 -1
- package/web-types.json +210 -3
|
@@ -33,27 +33,33 @@ export declare const collapseProps: {
|
|
|
33
33
|
titleFontWeight: string;
|
|
34
34
|
dividerColor: string;
|
|
35
35
|
titleTextColor: string;
|
|
36
|
+
titleTextColorDisabled: string;
|
|
36
37
|
fontSize: string;
|
|
37
38
|
textColor: string;
|
|
38
39
|
arrowColor: string;
|
|
40
|
+
arrowColorDisabled: string;
|
|
39
41
|
}, any>>;
|
|
40
42
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
41
43
|
titleFontSize: string;
|
|
42
44
|
titleFontWeight: string;
|
|
43
45
|
dividerColor: string;
|
|
44
46
|
titleTextColor: string;
|
|
47
|
+
titleTextColorDisabled: string;
|
|
45
48
|
fontSize: string;
|
|
46
49
|
textColor: string;
|
|
47
50
|
arrowColor: string;
|
|
51
|
+
arrowColorDisabled: string;
|
|
48
52
|
}, any>>>;
|
|
49
53
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
50
54
|
titleFontSize: string;
|
|
51
55
|
titleFontWeight: string;
|
|
52
56
|
dividerColor: string;
|
|
53
57
|
titleTextColor: string;
|
|
58
|
+
titleTextColorDisabled: string;
|
|
54
59
|
fontSize: string;
|
|
55
60
|
textColor: string;
|
|
56
61
|
arrowColor: string;
|
|
62
|
+
arrowColorDisabled: string;
|
|
57
63
|
}, any>>>;
|
|
58
64
|
};
|
|
59
65
|
export declare type CollapseProps = ExtractPublicPropTypes<typeof collapseProps>;
|
|
@@ -96,27 +102,33 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
102
|
titleFontWeight: string;
|
|
97
103
|
dividerColor: string;
|
|
98
104
|
titleTextColor: string;
|
|
105
|
+
titleTextColorDisabled: string;
|
|
99
106
|
fontSize: string;
|
|
100
107
|
textColor: string;
|
|
101
108
|
arrowColor: string;
|
|
109
|
+
arrowColorDisabled: string;
|
|
102
110
|
}, any>>;
|
|
103
111
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
104
112
|
titleFontSize: string;
|
|
105
113
|
titleFontWeight: string;
|
|
106
114
|
dividerColor: string;
|
|
107
115
|
titleTextColor: string;
|
|
116
|
+
titleTextColorDisabled: string;
|
|
108
117
|
fontSize: string;
|
|
109
118
|
textColor: string;
|
|
110
119
|
arrowColor: string;
|
|
120
|
+
arrowColorDisabled: string;
|
|
111
121
|
}, any>>>;
|
|
112
122
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
113
123
|
titleFontSize: string;
|
|
114
124
|
titleFontWeight: string;
|
|
115
125
|
dividerColor: string;
|
|
116
126
|
titleTextColor: string;
|
|
127
|
+
titleTextColorDisabled: string;
|
|
117
128
|
fontSize: string;
|
|
118
129
|
textColor: string;
|
|
119
130
|
arrowColor: string;
|
|
131
|
+
arrowColorDisabled: string;
|
|
120
132
|
}, any>>>;
|
|
121
133
|
}, {
|
|
122
134
|
rtlEnabled: Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
@@ -231,9 +243,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
231
243
|
titleFontWeight: string;
|
|
232
244
|
dividerColor: string;
|
|
233
245
|
titleTextColor: string;
|
|
246
|
+
titleTextColorDisabled: string;
|
|
234
247
|
fontSize: string;
|
|
235
248
|
textColor: string;
|
|
236
249
|
arrowColor: string;
|
|
250
|
+
arrowColorDisabled: string;
|
|
237
251
|
};
|
|
238
252
|
peers: any;
|
|
239
253
|
peerOverrides: {
|
|
@@ -248,8 +262,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
248
262
|
'--n-divider-color': string;
|
|
249
263
|
'--n-title-font-size': string;
|
|
250
264
|
'--n-title-text-color': string;
|
|
265
|
+
'--n-title-text-color-disabled': string;
|
|
251
266
|
'--n-title-font-weight': string;
|
|
252
267
|
'--n-arrow-color': string;
|
|
268
|
+
'--n-arrow-color-disabled': string;
|
|
253
269
|
}> | undefined;
|
|
254
270
|
themeClass: Ref<string> | undefined;
|
|
255
271
|
onRender: (() => void) | undefined;
|
|
@@ -284,27 +300,33 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
284
300
|
titleFontWeight: string;
|
|
285
301
|
dividerColor: string;
|
|
286
302
|
titleTextColor: string;
|
|
303
|
+
titleTextColorDisabled: string;
|
|
287
304
|
fontSize: string;
|
|
288
305
|
textColor: string;
|
|
289
306
|
arrowColor: string;
|
|
307
|
+
arrowColorDisabled: string;
|
|
290
308
|
}, any>>;
|
|
291
309
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
292
310
|
titleFontSize: string;
|
|
293
311
|
titleFontWeight: string;
|
|
294
312
|
dividerColor: string;
|
|
295
313
|
titleTextColor: string;
|
|
314
|
+
titleTextColorDisabled: string;
|
|
296
315
|
fontSize: string;
|
|
297
316
|
textColor: string;
|
|
298
317
|
arrowColor: string;
|
|
318
|
+
arrowColorDisabled: string;
|
|
299
319
|
}, any>>>;
|
|
300
320
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
301
321
|
titleFontSize: string;
|
|
302
322
|
titleFontWeight: string;
|
|
303
323
|
dividerColor: string;
|
|
304
324
|
titleTextColor: string;
|
|
325
|
+
titleTextColorDisabled: string;
|
|
305
326
|
fontSize: string;
|
|
306
327
|
textColor: string;
|
|
307
328
|
arrowColor: string;
|
|
329
|
+
arrowColorDisabled: string;
|
|
308
330
|
}, any>>>;
|
|
309
331
|
}>>, {
|
|
310
332
|
readonly displayDirective: "show" | "if";
|
|
@@ -107,7 +107,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
107
107
|
});
|
|
108
108
|
const rtlEnabledRef = (0, use_rtl_1.useRtl)('Collapse', mergedRtlRef, mergedClsPrefixRef);
|
|
109
109
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
110
|
-
const { common: { cubicBezierEaseInOut }, self: { titleFontWeight, dividerColor, titleTextColor, textColor, arrowColor, fontSize, titleFontSize } } = themeRef.value;
|
|
110
|
+
const { common: { cubicBezierEaseInOut }, self: { titleFontWeight, dividerColor, titleTextColor, titleTextColorDisabled, textColor, arrowColor, fontSize, titleFontSize, arrowColorDisabled } } = themeRef.value;
|
|
111
111
|
return {
|
|
112
112
|
'--n-font-size': fontSize,
|
|
113
113
|
'--n-bezier': cubicBezierEaseInOut,
|
|
@@ -115,8 +115,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
115
115
|
'--n-divider-color': dividerColor,
|
|
116
116
|
'--n-title-font-size': titleFontSize,
|
|
117
117
|
'--n-title-text-color': titleTextColor,
|
|
118
|
+
'--n-title-text-color-disabled': titleTextColorDisabled,
|
|
118
119
|
'--n-title-font-weight': titleFontWeight,
|
|
119
|
-
'--n-arrow-color': arrowColor
|
|
120
|
+
'--n-arrow-color': arrowColor,
|
|
121
|
+
'--n-arrow-color-disabled': arrowColorDisabled
|
|
120
122
|
};
|
|
121
123
|
});
|
|
122
124
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -3,12 +3,14 @@ import { ExtractPublicPropTypes } from '../../_utils';
|
|
|
3
3
|
export declare const collapseItemProps: {
|
|
4
4
|
readonly title: StringConstructor;
|
|
5
5
|
readonly name: PropType<string | number>;
|
|
6
|
+
readonly disabled: BooleanConstructor;
|
|
6
7
|
readonly displayDirective: PropType<"show" | "if">;
|
|
7
8
|
};
|
|
8
9
|
export declare type CollapseItemProps = ExtractPublicPropTypes<typeof collapseItemProps>;
|
|
9
10
|
declare const _default: import("vue").DefineComponent<{
|
|
10
11
|
readonly title: StringConstructor;
|
|
11
12
|
readonly name: PropType<string | number>;
|
|
13
|
+
readonly disabled: BooleanConstructor;
|
|
12
14
|
readonly displayDirective: PropType<"show" | "if">;
|
|
13
15
|
}, {
|
|
14
16
|
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
@@ -24,6 +26,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
26
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
27
|
readonly title: StringConstructor;
|
|
26
28
|
readonly name: PropType<string | number>;
|
|
29
|
+
readonly disabled: BooleanConstructor;
|
|
27
30
|
readonly displayDirective: PropType<"show" | "if">;
|
|
28
|
-
}>>, {
|
|
31
|
+
}>>, {
|
|
32
|
+
readonly disabled: boolean;
|
|
33
|
+
}>;
|
|
29
34
|
export default _default;
|
|
@@ -17,6 +17,7 @@ const _mixins_1 = require("../../_mixins");
|
|
|
17
17
|
exports.collapseItemProps = {
|
|
18
18
|
title: String,
|
|
19
19
|
name: [String, Number],
|
|
20
|
+
disabled: Boolean,
|
|
20
21
|
displayDirective: String
|
|
21
22
|
};
|
|
22
23
|
exports.default = (0, vue_1.defineComponent)({
|
|
@@ -66,7 +67,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
66
67
|
return collapseProps.arrowPlacement;
|
|
67
68
|
}),
|
|
68
69
|
handleClick(e) {
|
|
69
|
-
if (NCollapse) {
|
|
70
|
+
if (NCollapse && !props.disabled) {
|
|
70
71
|
NCollapse.toggleItem(collapsedRef.value, mergedNameRef.value, e);
|
|
71
72
|
}
|
|
72
73
|
}
|
|
@@ -74,13 +75,14 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
74
75
|
},
|
|
75
76
|
render() {
|
|
76
77
|
var _a;
|
|
77
|
-
const { collapseSlots, $slots, arrowPlacement, collapsed, mergedDisplayDirective, mergedClsPrefix } = this;
|
|
78
|
+
const { collapseSlots, $slots, arrowPlacement, collapsed, mergedDisplayDirective, mergedClsPrefix, disabled } = this;
|
|
78
79
|
const headerNode = $slots.header ? $slots.header() : this.title;
|
|
79
80
|
const headerExtraSlot = $slots['header-extra'] || collapseSlots['header-extra'];
|
|
80
81
|
const arrowSlot = $slots.arrow || collapseSlots.arrow;
|
|
81
82
|
return ((0, vue_1.h)("div", { class: [
|
|
82
83
|
`${mergedClsPrefix}-collapse-item`,
|
|
83
84
|
`${mergedClsPrefix}-collapse-item--${arrowPlacement}-arrow-placement`,
|
|
85
|
+
disabled && `${mergedClsPrefix}-collapse-item--disabled`,
|
|
84
86
|
!collapsed && `${mergedClsPrefix}-collapse-item--active`
|
|
85
87
|
] },
|
|
86
88
|
(0, vue_1.h)("div", { class: [
|
|
@@ -15,34 +15,24 @@ const fade_in_height_expand_cssr_1 = require("../../../_styles/transitions/fade-
|
|
|
15
15
|
// --n-title-text-color
|
|
16
16
|
// --n-title-font-weight
|
|
17
17
|
// --n-arrow-color
|
|
18
|
+
// --n-arrow-color-disabled
|
|
19
|
+
// --n-title-text-color-disabled
|
|
18
20
|
|
|
19
21
|
|
|
20
|
-
exports.default = (0, cssr_1.cB)('collapse',
|
|
21
|
-
width: '100%'
|
|
22
|
-
}, [(0, cssr_1.cB)('collapse-item', `
|
|
22
|
+
exports.default = (0, cssr_1.cB)('collapse', 'width: 100%;', [(0, cssr_1.cB)('collapse-item', `
|
|
23
23
|
font-size: var(--n-font-size);
|
|
24
24
|
color: var(--n-text-color);
|
|
25
25
|
transition:
|
|
26
26
|
color .3s var(--n-bezier),
|
|
27
27
|
border-color .3s var(--n-bezier);
|
|
28
28
|
margin: 16px 0 0 0;
|
|
29
|
-
`, [(0, cssr_1.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
marginRight: '4px'
|
|
35
|
-
})])]), (0, cssr_1.cM)('right-arrow-placement', [(0, cssr_1.cE)('header', [(0, cssr_1.cB)('collapse-item-arrow', {
|
|
36
|
-
marginLeft: '4px'
|
|
37
|
-
})])]), (0, cssr_1.cE)('content-wrapper', [(0, cssr_1.cE)('content-inner', {
|
|
38
|
-
paddingTop: '16px'
|
|
39
|
-
}), (0, fade_in_height_expand_cssr_1.fadeInHeightExpandTransition)({
|
|
29
|
+
`, [(0, cssr_1.cM)('disabled', [(0, cssr_1.cE)('header', 'cursor: not-allowed;', [(0, cssr_1.cE)('header-main', `
|
|
30
|
+
color: var(--n-title-text-color-disabled);
|
|
31
|
+
`), (0, cssr_1.cB)('collapse-item-arrow', `
|
|
32
|
+
color: var(--n-arrow-color-disabled);
|
|
33
|
+
`)])]), (0, cssr_1.cB)('collapse-item', 'margin-left: 32px;'), (0, cssr_1.c)('&:first-child', 'margin-top: 0;'), (0, cssr_1.c)('&:first-child >', [(0, cssr_1.cE)('header', 'padding-top: 0;')]), (0, cssr_1.cM)('left-arrow-placement', [(0, cssr_1.cE)('header', [(0, cssr_1.cB)('collapse-item-arrow', 'margin-right: 4px;')])]), (0, cssr_1.cM)('right-arrow-placement', [(0, cssr_1.cE)('header', [(0, cssr_1.cB)('collapse-item-arrow', 'margin-left: 4px;')])]), (0, cssr_1.cE)('content-wrapper', [(0, cssr_1.cE)('content-inner', 'padding-top: 16px;'), (0, fade_in_height_expand_cssr_1.fadeInHeightExpandTransition)({
|
|
40
34
|
duration: '0.15s'
|
|
41
|
-
})]), (0, cssr_1.cM)('active', [(0, cssr_1.cE)('header', [(0, cssr_1.cM)('active', [(0, cssr_1.cB)('collapse-item-arrow',
|
|
42
|
-
transform: 'rotate(90deg)'
|
|
43
|
-
})])])]), (0, cssr_1.c)('&:not(:first-child)', {
|
|
44
|
-
borderTop: '1px solid var(--n-divider-color)'
|
|
45
|
-
}), (0, cssr_1.cE)('header', `
|
|
35
|
+
})]), (0, cssr_1.cM)('active', [(0, cssr_1.cE)('header', [(0, cssr_1.cM)('active', [(0, cssr_1.cB)('collapse-item-arrow', 'transform: rotate(90deg);')])])]), (0, cssr_1.c)('&:not(:first-child)', 'border-top: 1px solid var(--n-divider-color);'), (0, cssr_1.cE)('header', `
|
|
46
36
|
font-size: var(--n-title-font-size);
|
|
47
37
|
display: flex;
|
|
48
38
|
flex-wrap: nowrap;
|
|
@@ -51,8 +41,8 @@ exports.default = (0, cssr_1.cB)('collapse', {
|
|
|
51
41
|
position: relative;
|
|
52
42
|
padding: 16px 0 0 0;
|
|
53
43
|
color: var(--n-title-text-color);
|
|
54
|
-
`, [(0, cssr_1.cE)('header-main', `
|
|
55
44
|
cursor: pointer;
|
|
45
|
+
`, [(0, cssr_1.cE)('header-main', `
|
|
56
46
|
display: flex;
|
|
57
47
|
flex-wrap: nowrap;
|
|
58
48
|
align-items: center;
|
|
@@ -61,7 +51,6 @@ exports.default = (0, cssr_1.cB)('collapse', {
|
|
|
61
51
|
flex: 1;
|
|
62
52
|
color: var(--n-title-text-color);
|
|
63
53
|
`), (0, cssr_1.cE)('header-extra', `
|
|
64
|
-
cursor: pointer;
|
|
65
54
|
display: flex;
|
|
66
55
|
align-items: center;
|
|
67
56
|
transition: color .3s var(--n-bezier);
|
|
@@ -5,9 +5,11 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
5
5
|
titleFontWeight: string;
|
|
6
6
|
dividerColor: string;
|
|
7
7
|
titleTextColor: string;
|
|
8
|
+
titleTextColorDisabled: string;
|
|
8
9
|
fontSize: string;
|
|
9
10
|
textColor: string;
|
|
10
11
|
arrowColor: string;
|
|
12
|
+
arrowColorDisabled: string;
|
|
11
13
|
};
|
|
12
14
|
export declare type CollapseThemeVars = ReturnType<typeof self>;
|
|
13
15
|
declare const collapseLight: Theme<'Collapse', CollapseThemeVars>;
|
|
@@ -3,15 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.self = void 0;
|
|
4
4
|
const common_1 = require("../../_styles/common");
|
|
5
5
|
const self = (vars) => {
|
|
6
|
-
const { fontWeight, textColor1, textColor2, dividerColor, fontSize } = vars;
|
|
6
|
+
const { fontWeight, textColor1, textColor2, textColorDisabled, dividerColor, fontSize } = vars;
|
|
7
7
|
return {
|
|
8
8
|
titleFontSize: fontSize,
|
|
9
9
|
titleFontWeight: fontWeight,
|
|
10
|
-
dividerColor
|
|
10
|
+
dividerColor,
|
|
11
11
|
titleTextColor: textColor1,
|
|
12
|
+
titleTextColorDisabled: textColorDisabled,
|
|
12
13
|
fontSize,
|
|
13
14
|
textColor: textColor2,
|
|
14
|
-
arrowColor: textColor2
|
|
15
|
+
arrowColor: textColor2,
|
|
16
|
+
arrowColorDisabled: textColorDisabled
|
|
15
17
|
};
|
|
16
18
|
};
|
|
17
19
|
exports.self = self;
|
|
@@ -63,6 +63,7 @@ export declare const colorPickerProps: {
|
|
|
63
63
|
dividerColor: string;
|
|
64
64
|
}, {
|
|
65
65
|
Input: import("../../_mixins").Theme<"Input", {
|
|
66
|
+
countTextColorDisabled: string;
|
|
66
67
|
countTextColor: string;
|
|
67
68
|
heightTiny: string;
|
|
68
69
|
heightSmall: string;
|
|
@@ -343,6 +344,7 @@ export declare const colorPickerProps: {
|
|
|
343
344
|
dividerColor: string;
|
|
344
345
|
}, {
|
|
345
346
|
Input: import("../../_mixins").Theme<"Input", {
|
|
347
|
+
countTextColorDisabled: string;
|
|
346
348
|
countTextColor: string;
|
|
347
349
|
heightTiny: string;
|
|
348
350
|
heightSmall: string;
|
|
@@ -623,6 +625,7 @@ export declare const colorPickerProps: {
|
|
|
623
625
|
dividerColor: string;
|
|
624
626
|
}, {
|
|
625
627
|
Input: import("../../_mixins").Theme<"Input", {
|
|
628
|
+
countTextColorDisabled: string;
|
|
626
629
|
countTextColor: string;
|
|
627
630
|
heightTiny: string;
|
|
628
631
|
heightSmall: string;
|
|
@@ -948,6 +951,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
948
951
|
dividerColor: string;
|
|
949
952
|
}, {
|
|
950
953
|
Input: import("../../_mixins").Theme<"Input", {
|
|
954
|
+
countTextColorDisabled: string;
|
|
951
955
|
countTextColor: string;
|
|
952
956
|
heightTiny: string;
|
|
953
957
|
heightSmall: string;
|
|
@@ -1228,6 +1232,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1228
1232
|
dividerColor: string;
|
|
1229
1233
|
}, {
|
|
1230
1234
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1235
|
+
countTextColorDisabled: string;
|
|
1231
1236
|
countTextColor: string;
|
|
1232
1237
|
heightTiny: string;
|
|
1233
1238
|
heightSmall: string;
|
|
@@ -1508,6 +1513,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1508
1513
|
dividerColor: string;
|
|
1509
1514
|
}, {
|
|
1510
1515
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1516
|
+
countTextColorDisabled: string;
|
|
1511
1517
|
countTextColor: string;
|
|
1512
1518
|
heightTiny: string;
|
|
1513
1519
|
heightSmall: string;
|
|
@@ -1859,6 +1865,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1859
1865
|
dividerColor: string;
|
|
1860
1866
|
}, {
|
|
1861
1867
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1868
|
+
countTextColorDisabled: string;
|
|
1862
1869
|
countTextColor: string;
|
|
1863
1870
|
heightTiny: string;
|
|
1864
1871
|
heightSmall: string;
|
|
@@ -2139,6 +2146,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2139
2146
|
dividerColor: string;
|
|
2140
2147
|
}, {
|
|
2141
2148
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2149
|
+
countTextColorDisabled: string;
|
|
2142
2150
|
countTextColor: string;
|
|
2143
2151
|
heightTiny: string;
|
|
2144
2152
|
heightSmall: string;
|
|
@@ -2419,6 +2427,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2419
2427
|
dividerColor: string;
|
|
2420
2428
|
}, {
|
|
2421
2429
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2430
|
+
countTextColorDisabled: string;
|
|
2422
2431
|
countTextColor: string;
|
|
2423
2432
|
heightTiny: string;
|
|
2424
2433
|
heightSmall: string;
|
|
@@ -411,8 +411,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
411
411
|
},
|
|
412
412
|
handleClickOutside(e) {
|
|
413
413
|
var _a;
|
|
414
|
-
if ((_a = selfRef.value) === null || _a === void 0 ? void 0 : _a.contains(
|
|
414
|
+
if ((_a = selfRef.value) === null || _a === void 0 ? void 0 : _a.contains((0, seemly_1.getPreciseEventTarget)(e))) {
|
|
415
415
|
return;
|
|
416
|
+
}
|
|
416
417
|
doUpdateShow(false);
|
|
417
418
|
},
|
|
418
419
|
renderPanel,
|
|
@@ -31,6 +31,7 @@ declare const colorPickerLight: import("../../_mixins/use-theme").Theme<"ColorPi
|
|
|
31
31
|
dividerColor: string;
|
|
32
32
|
}, {
|
|
33
33
|
Input: import("../../_mixins/use-theme").Theme<"Input", {
|
|
34
|
+
countTextColorDisabled: string;
|
|
34
35
|
countTextColor: string;
|
|
35
36
|
heightTiny: string;
|
|
36
37
|
heightSmall: string;
|
|
@@ -65,8 +65,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
65
65
|
distanceRef.value = 0;
|
|
66
66
|
stopTimer();
|
|
67
67
|
if (!finished) {
|
|
68
|
-
(_a = props.onFinish) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
69
68
|
finished = true;
|
|
69
|
+
(_a = props.onFinish) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
70
70
|
}
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
@@ -57,6 +57,7 @@ export declare const dataTableProps: {
|
|
|
57
57
|
};
|
|
58
58
|
readonly defaultExpandAll: BooleanConstructor;
|
|
59
59
|
readonly expandedRowKeys: PropType<RowKey[]>;
|
|
60
|
+
readonly stickyExpandedRows: BooleanConstructor;
|
|
60
61
|
readonly virtualScroll: BooleanConstructor;
|
|
61
62
|
readonly tableLayout: {
|
|
62
63
|
readonly type: PropType<"fixed" | "auto">;
|
|
@@ -81,6 +82,7 @@ export declare const dataTableProps: {
|
|
|
81
82
|
readonly default: "current";
|
|
82
83
|
};
|
|
83
84
|
readonly renderCell: PropType<(value: any, rowData: object, column: TableBaseColumn) => VNodeChild>;
|
|
85
|
+
readonly renderExpandIcon: PropType<() => VNodeChild>;
|
|
84
86
|
readonly onLoad: PropType<DataTableOnLoad>;
|
|
85
87
|
readonly 'onUpdate:page': PropType<MaybeArray<(page: number) => void> | undefined>;
|
|
86
88
|
readonly onUpdatePage: PropType<MaybeArray<(page: number) => void> | undefined>;
|
|
@@ -618,6 +620,7 @@ export declare const dataTableProps: {
|
|
|
618
620
|
}>;
|
|
619
621
|
}>;
|
|
620
622
|
Input: import("../../_mixins").Theme<"Input", {
|
|
623
|
+
countTextColorDisabled: string;
|
|
621
624
|
countTextColor: string;
|
|
622
625
|
heightTiny: string;
|
|
623
626
|
heightSmall: string;
|
|
@@ -1323,6 +1326,7 @@ export declare const dataTableProps: {
|
|
|
1323
1326
|
}>;
|
|
1324
1327
|
}>;
|
|
1325
1328
|
Input: import("../../_mixins").Theme<"Input", {
|
|
1329
|
+
countTextColorDisabled: string;
|
|
1326
1330
|
countTextColor: string;
|
|
1327
1331
|
heightTiny: string;
|
|
1328
1332
|
heightSmall: string;
|
|
@@ -2028,6 +2032,7 @@ export declare const dataTableProps: {
|
|
|
2028
2032
|
}>;
|
|
2029
2033
|
}>;
|
|
2030
2034
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2035
|
+
countTextColorDisabled: string;
|
|
2031
2036
|
countTextColor: string;
|
|
2032
2037
|
heightTiny: string;
|
|
2033
2038
|
heightSmall: string;
|
|
@@ -2273,6 +2278,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2273
2278
|
};
|
|
2274
2279
|
readonly defaultExpandAll: BooleanConstructor;
|
|
2275
2280
|
readonly expandedRowKeys: PropType<RowKey[]>;
|
|
2281
|
+
readonly stickyExpandedRows: BooleanConstructor;
|
|
2276
2282
|
readonly virtualScroll: BooleanConstructor;
|
|
2277
2283
|
readonly tableLayout: {
|
|
2278
2284
|
readonly type: PropType<"fixed" | "auto">;
|
|
@@ -2297,6 +2303,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2297
2303
|
readonly default: "current";
|
|
2298
2304
|
};
|
|
2299
2305
|
readonly renderCell: PropType<(value: any, rowData: object, column: TableBaseColumn<import("./interface").InternalRowData>) => VNodeChild>;
|
|
2306
|
+
readonly renderExpandIcon: PropType<() => VNodeChild>;
|
|
2300
2307
|
readonly onLoad: PropType<DataTableOnLoad>;
|
|
2301
2308
|
readonly 'onUpdate:page': PropType<MaybeArray<(page: number) => void> | undefined>;
|
|
2302
2309
|
readonly onUpdatePage: PropType<MaybeArray<(page: number) => void> | undefined>;
|
|
@@ -2834,6 +2841,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2834
2841
|
}>;
|
|
2835
2842
|
}>;
|
|
2836
2843
|
Input: import("../../_mixins").Theme<"Input", {
|
|
2844
|
+
countTextColorDisabled: string;
|
|
2837
2845
|
countTextColor: string;
|
|
2838
2846
|
heightTiny: string;
|
|
2839
2847
|
heightSmall: string;
|
|
@@ -3539,6 +3547,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3539
3547
|
}>;
|
|
3540
3548
|
}>;
|
|
3541
3549
|
Input: import("../../_mixins").Theme<"Input", {
|
|
3550
|
+
countTextColorDisabled: string;
|
|
3542
3551
|
countTextColor: string;
|
|
3543
3552
|
heightTiny: string;
|
|
3544
3553
|
heightSmall: string;
|
|
@@ -4244,6 +4253,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4244
4253
|
}>;
|
|
4245
4254
|
}>;
|
|
4246
4255
|
Input: import("../../_mixins").Theme<"Input", {
|
|
4256
|
+
countTextColorDisabled: string;
|
|
4247
4257
|
countTextColor: string;
|
|
4248
4258
|
heightTiny: string;
|
|
4249
4259
|
heightSmall: string;
|
|
@@ -5071,6 +5081,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5071
5081
|
}>;
|
|
5072
5082
|
}>;
|
|
5073
5083
|
Input: import("../../_mixins").Theme<"Input", {
|
|
5084
|
+
countTextColorDisabled: string;
|
|
5074
5085
|
countTextColor: string;
|
|
5075
5086
|
heightTiny: string;
|
|
5076
5087
|
heightSmall: string;
|
|
@@ -5403,6 +5414,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5403
5414
|
}>;
|
|
5404
5415
|
}>> | undefined;
|
|
5405
5416
|
Input?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Input", {
|
|
5417
|
+
countTextColorDisabled: string;
|
|
5406
5418
|
countTextColor: string;
|
|
5407
5419
|
heightTiny: string;
|
|
5408
5420
|
heightSmall: string;
|
|
@@ -5681,6 +5693,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5681
5693
|
};
|
|
5682
5694
|
readonly defaultExpandAll: BooleanConstructor;
|
|
5683
5695
|
readonly expandedRowKeys: PropType<RowKey[]>;
|
|
5696
|
+
readonly stickyExpandedRows: BooleanConstructor;
|
|
5684
5697
|
readonly virtualScroll: BooleanConstructor;
|
|
5685
5698
|
readonly tableLayout: {
|
|
5686
5699
|
readonly type: PropType<"fixed" | "auto">;
|
|
@@ -5705,6 +5718,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5705
5718
|
readonly default: "current";
|
|
5706
5719
|
};
|
|
5707
5720
|
readonly renderCell: PropType<(value: any, rowData: object, column: TableBaseColumn<import("./interface").InternalRowData>) => VNodeChild>;
|
|
5721
|
+
readonly renderExpandIcon: PropType<() => VNodeChild>;
|
|
5708
5722
|
readonly onLoad: PropType<DataTableOnLoad>;
|
|
5709
5723
|
readonly 'onUpdate:page': PropType<MaybeArray<(page: number) => void> | undefined>;
|
|
5710
5724
|
readonly onUpdatePage: PropType<MaybeArray<(page: number) => void> | undefined>;
|
|
@@ -6242,6 +6256,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6242
6256
|
}>;
|
|
6243
6257
|
}>;
|
|
6244
6258
|
Input: import("../../_mixins").Theme<"Input", {
|
|
6259
|
+
countTextColorDisabled: string;
|
|
6245
6260
|
countTextColor: string;
|
|
6246
6261
|
heightTiny: string;
|
|
6247
6262
|
heightSmall: string;
|
|
@@ -6947,6 +6962,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6947
6962
|
}>;
|
|
6948
6963
|
}>;
|
|
6949
6964
|
Input: import("../../_mixins").Theme<"Input", {
|
|
6965
|
+
countTextColorDisabled: string;
|
|
6950
6966
|
countTextColor: string;
|
|
6951
6967
|
heightTiny: string;
|
|
6952
6968
|
heightSmall: string;
|
|
@@ -7652,6 +7668,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7652
7668
|
}>;
|
|
7653
7669
|
}>;
|
|
7654
7670
|
Input: import("../../_mixins").Theme<"Input", {
|
|
7671
|
+
countTextColorDisabled: string;
|
|
7655
7672
|
countTextColor: string;
|
|
7656
7673
|
heightTiny: string;
|
|
7657
7674
|
heightSmall: string;
|
|
@@ -7857,6 +7874,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7857
7874
|
readonly singleColumn: boolean;
|
|
7858
7875
|
readonly defaultExpandedRowKeys: RowKey[];
|
|
7859
7876
|
readonly defaultExpandAll: boolean;
|
|
7877
|
+
readonly stickyExpandedRows: boolean;
|
|
7860
7878
|
readonly allowCheckingNotLoaded: boolean;
|
|
7861
7879
|
readonly cascade: boolean;
|
|
7862
7880
|
readonly childrenKey: string;
|
|
@@ -51,7 +51,7 @@ exports.dataTableProps = Object.assign(Object.assign({}, _mixins_1.useTheme.prop
|
|
|
51
51
|
}, remote: Boolean, defaultExpandedRowKeys: {
|
|
52
52
|
type: Array,
|
|
53
53
|
default: []
|
|
54
|
-
}, defaultExpandAll: Boolean, expandedRowKeys: Array, virtualScroll: Boolean, tableLayout: {
|
|
54
|
+
}, defaultExpandAll: Boolean, expandedRowKeys: Array, stickyExpandedRows: Boolean, virtualScroll: Boolean, tableLayout: {
|
|
55
55
|
type: String,
|
|
56
56
|
default: 'auto'
|
|
57
57
|
}, allowCheckingNotLoaded: Boolean, cascade: {
|
|
@@ -66,7 +66,7 @@ exports.dataTableProps = Object.assign(Object.assign({}, _mixins_1.useTheme.prop
|
|
|
66
66
|
}, flexHeight: Boolean, paginationBehaviorOnFilter: {
|
|
67
67
|
type: String,
|
|
68
68
|
default: 'current'
|
|
69
|
-
}, renderCell: 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,
|
|
69
|
+
}, 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,
|
|
70
70
|
// deprecated
|
|
71
71
|
onPageChange: [Function, Array], onPageSizeChange: [Function, Array], onSorterChange: [Function, Array], onFiltersChange: [Function, Array], onCheckedRowKeysChange: [Function, Array] });
|
|
72
72
|
exports.default = (0, vue_1.defineComponent)({
|
|
@@ -118,7 +118,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
118
118
|
treeMateRef,
|
|
119
119
|
paginatedDataRef
|
|
120
120
|
});
|
|
121
|
-
const { mergedExpandedRowKeysRef, renderExpandRef, doUpdateExpandedRowKeys } = (0, use_expand_1.useExpand)(props, treeMateRef);
|
|
121
|
+
const { stickyExpandedRowsRef, mergedExpandedRowKeysRef, renderExpandRef, expandableRef, doUpdateExpandedRowKeys } = (0, use_expand_1.useExpand)(props, treeMateRef);
|
|
122
122
|
const { handleTableBodyScroll, handleTableHeaderScroll, syncScrollState, setHeaderScrollLeft, leftActiveFixedColKeyRef, leftActiveFixedChildrenColKeysRef, rightActiveFixedColKeyRef, rightActiveFixedChildrenColKeysRef, leftFixedColumnsRef, rightFixedColumnsRef, fixedColumnLeftMapRef, fixedColumnRightMapRef } = (0, use_scroll_1.useScroll)(props, {
|
|
123
123
|
scrollPartRef,
|
|
124
124
|
bodyWidthRef,
|
|
@@ -139,6 +139,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
139
139
|
return props.tableLayout;
|
|
140
140
|
});
|
|
141
141
|
(0, vue_1.provide)(interface_1.dataTableInjectionKey, {
|
|
142
|
+
renderExpandIconRef: (0, vue_1.toRef)(props, 'renderExpandIcon'),
|
|
142
143
|
loadingKeySetRef: (0, vue_1.ref)(new Set()),
|
|
143
144
|
slots,
|
|
144
145
|
indentRef: (0, vue_1.toRef)(props, 'indent'),
|
|
@@ -172,6 +173,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
172
173
|
mergedInderminateRowKeySetRef,
|
|
173
174
|
localeRef,
|
|
174
175
|
scrollPartRef,
|
|
176
|
+
expandableRef,
|
|
177
|
+
stickyExpandedRowsRef,
|
|
175
178
|
rowKeyRef: (0, vue_1.toRef)(props, 'rowKey'),
|
|
176
179
|
renderExpandRef,
|
|
177
180
|
summaryRef: (0, vue_1.toRef)(props, 'summary'),
|
|
@@ -635,6 +635,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
635
635
|
}>;
|
|
636
636
|
}>;
|
|
637
637
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
638
|
+
countTextColorDisabled: string;
|
|
638
639
|
countTextColor: string;
|
|
639
640
|
heightTiny: string;
|
|
640
641
|
heightSmall: string;
|
|
@@ -967,6 +968,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
967
968
|
}>;
|
|
968
969
|
}>> | undefined;
|
|
969
970
|
Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
|
|
971
|
+
countTextColorDisabled: string;
|
|
970
972
|
countTextColor: string;
|
|
971
973
|
heightTiny: string;
|
|
972
974
|
heightSmall: string;
|
|
@@ -660,6 +660,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
660
660
|
}>;
|
|
661
661
|
}>;
|
|
662
662
|
Input: import("../../../_mixins").Theme<"Input", {
|
|
663
|
+
countTextColorDisabled: string;
|
|
663
664
|
countTextColor: string;
|
|
664
665
|
heightTiny: string;
|
|
665
666
|
heightSmall: string;
|
|
@@ -708,7 +709,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
708
709
|
clearColor: string;
|
|
709
710
|
clearColorHover: string;
|
|
710
711
|
clearColorPressed: string;
|
|
711
|
-
iconColor: string;
|
|
712
|
+
iconColor: string; /** this branch is for compatibility */
|
|
712
713
|
iconColorDisabled: string;
|
|
713
714
|
iconColorHover: string;
|
|
714
715
|
iconColorPressed: string;
|
|
@@ -992,6 +993,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
992
993
|
}>;
|
|
993
994
|
}>> | undefined;
|
|
994
995
|
Input?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Input", {
|
|
996
|
+
countTextColorDisabled: string;
|
|
995
997
|
countTextColor: string;
|
|
996
998
|
heightTiny: string;
|
|
997
999
|
heightSmall: string;
|
|
@@ -1040,7 +1042,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1040
1042
|
clearColor: string;
|
|
1041
1043
|
clearColorHover: string;
|
|
1042
1044
|
clearColorPressed: string;
|
|
1043
|
-
iconColor: string;
|
|
1045
|
+
iconColor: string; /** this branch is for compatibility */
|
|
1044
1046
|
iconColorDisabled: string;
|
|
1045
1047
|
iconColorHover: string;
|
|
1046
1048
|
iconColorPressed: string;
|